:>:> > hold one line from parsed file. Usually it is enough for one line, but
:>:...
:
:> Yes. System libraries traditionally use statically allocated buffers
:> because, even now, there is no dynamic equivalent for fgets(). The
:> closest you can get is to mmap() the file and extract the lines that
:> way.
:
:How about fgetln(3)?
:
: /Mikko
:--
: Mikko Työläjä[EMAIL PROTECTED]
Sure, if all you want to do is compile your program on a *BSD box.
But fgetln() is a stupid function... it doesn't return a nul-terminated
string, for example. It's a bad hack.
-Matt
To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message