Errors
Overview
The <errno.h> header defines an int named errno with thread storage duration. The value of errno in the initial thread is zero at program startup, but indeterminate for other threads. Many library function calls set this value to a nonzero number to indicate some error state. No library function call sets this value to zero.