For further information about the lseek() system call, a good starting point is its man page, which can be obtained by using the man 2 lseek command.