In the book “The C Programming Language” it says:
“Many of the functions in the library set status indicators when error or end of file occur. These
indicators may be set and tested explicitly. In addition, the integer expressionerrno(declared
in<errno.h>) may contain an error number that gives further information about the most
recent error.”
Where can I see a list of these functions?
The standard says this about
errno:Which says to me that any library function can screw around with
errnoin any way it likes except:errnoto0Note that the standard suggests the following in a footnote:
As noted in other answers, it’s common for functions that are not in the standard to set
errnoas well.