lseekMoves the file pointer | |||||||||||||
Arguments
Return ValueThe current file pointer is returned if the function succeeded.-1 is returned in all other cases. ExplanationThe file pointer of the device corresponding to the file descriptor specified by fd is moved according to the values of offset and flag.offset specifies the number of bytes to move the pointer. flag has the meaning indicated below:
lseek() cannot be used with character-type drivers. See Alsoopen(), read(), write() |