Some functions in the library set the global variable errno when an error occurs. The file, <errno.h>, provides symbolic names for various error codes.
errno
<errno.h>