[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: io:lines() and \0
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Thu, 20 Feb 2014 12:49:16 -0300
> For me fgets(buf, size, file) should be equivalent to a getc loop with
> some checkings for size, \n and EOF. And, from what we've seen on this
> thread, it seems the libC implementation do it that way.
Not really. See for instance
http://www.opensource.apple.com/source/Libc/Libc-167/stdio.subproj/fgets.c
http://svnweb.freebsd.org/base/head/lib/libc/stdio/fgets.c?revision=249810&view=markup
- References:
- Re: io:lines() and \0, Craig Barnes
- Re: io:lines() and \0, René Rebe
- Re: io:lines() and \0, Craig Barnes
- Re: io:lines() and \0, Sean Conner
- Re: io:lines() and \0, René Rebe
- Re: io:lines() and \0, René Rebe
- Re: io:lines() and \0, Sean Conner
- Re: io:lines() and \0, Francisco Olarte
- Re: io:lines() and \0, Enrico Colombini
- Re: io:lines() and \0, Francisco Olarte