lua-users home
lua-l archive

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

KHMan wrote:
Checking DJGPP, Cygwin and Linux, nobody mentioned handling of NUL
characters in fgets. The Open Group Base Specifications Issue 6
based on IEEE Std 1003.1 for fgets also does not mention this.
They didn't think it necessary to specify all the corner cases.

May be they didn't think it necessary because fgets *does* handle
null characters just fine?
(At least in 2 compilers I work with: gcc/mingw and bcc32/borland).