fgets() for open() ??

Libby Bagley libbyb at hpdml93.HP.COM
Wed Aug 30 04:31:17 AEST 1989



If I open a file using fopen(), I have the function
fgets() available to me.

If I open a file using open(), is there a function
similar to fgets() that I can use?  (Remember my
reference into the file is no longer a file
pointer, but an integer file descriptor.)

The question comes up because I would like to
lseek() a line at a time for variable length
lines.

Thanks for any help you can offer,

Libby Bagley



More information about the Comp.lang.c mailing list