fgets() for open() ??

Shankar Unni shankar at hpclscu.HP.COM
Fri Sep 1 06:55:46 AEST 1989


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

Try using "fdopen()" to attach a FILE buffer to the open file descriptor.
Then you can use "fgets", etc.
-----
Shankar Unni                                   E-Mail: 
Hewlett-Packard California Language Lab.     Internet: shankar at hpda.hp.com
Phone : (408) 447-5797                           UUCP: ...!hplabs!hpda!shankar



More information about the Comp.lang.c mailing list