:>:> > 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
- Staticaly allocated buffers in library. Is it correct? Andrey Simonenko
- Re: Staticaly allocated buffers in library. Is it ... milunovic
- Re: Staticaly allocated buffers in library. Is... Andrey Simonenko
- Re: Staticaly allocated buffers in library... Matt Dillon
- Re: Staticaly allocated buffers in lib... Mikko Tyolajarvi
- Re: Staticaly allocated buffers i... Matt Dillon
- Re: Staticaly allocated buffers in lib... mouss
- Re: Staticaly allocated buffers i... Matt Dillon
- Re: Staticaly allocated buffe... mouss
- Re: Staticaly allocated buffe... Andrey Simonenko
- Re: Staticaly allocated b... Jacques A. Vidrine

