Next: getc_unlocked
, Previous: getaddrinfo
, Up: ISO C and POSIX Function Substitutes [Contents][Index]
getc
POSIX specification:
https://pubs.opengroup.org/onlinepubs/9699919799/functions/getc.html
Gnulib module: stdio, nonblocking
Portability problems fixed by Gnulib module stdio
, together with module nonblocking
:
errno
being set to EINVAL
instead of EAGAIN
on
some platforms:
mingw, MSVC 14.
Portability problems not fixed by Gnulib:
feof
would return nonzero. However, on some systems this
function attempts to read from the underlying file descriptor even if
the stream’s end-of-file indicator is set. These systems include
glibc and default Solaris.
errno
upon failure.