Programming Tutorials

Comment on Tutorial - lseek() sample program in C By Baski



Comment Added by : Terry

Comment Added at : 2009-09-27 13:15:56

Comment on Tutorial : lseek() sample program in C By Baski
To determine current location in a file:
{
if (lseek(STDIN_FILENO, 0, SEEK_CUR) == -1)
printf ("cannot seek\n");
else
printf("seek at %d", &SEEK_CUR);
exit(0);
}


View Tutorial