Monday, 14 January 2013

lseek() system call (Cont’d)


lseek() system call (Cont’d)

long lseek(file_descriptor, offset, whence)
int file_descriptor;
long offset;
int whence;

whence          new position
------------------------------
0                   offset bytes into the file
1                   current position in the file plus offset
2                   current end-of-file position plus offset

No comments:

Post a Comment