lua-users home
lua-l archive

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


> Actually the C function behaves properly, just that Lua makes no attempt to
> determine how much was actually read.

If the data read contains \0 then there is no way to determine how much
was actually read. fgets relies on strlen to determine that.