[Beds] C Programming Question

Stephen Elliott techweb at ntlworld.com
Thu Feb 16 17:21:25 GMT 2006


Hi,

Please could someone tell me what the following line does.

seekp = lseek(fd, 0, SEEK_CUR);

My belief is it won't move the file pointer as the offset is set to 0.
Although it does seem to.

I have attached the program this code was taken from if it's any help.

Many Thanks
Stephen Elliott
--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.375 / Virus Database: 267.15.9/261 - Release Date: 15/02/2006
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fork_ex3.c
Type: application/octet-stream
Size: 895 bytes
Desc: not available
Url : http://mailman.lug.org.uk/pipermail/beds/attachments/20060216/203dab22/fork_ex3.obj


More information about the Beds mailing list