lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


> 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