Share on Facebook Share on Twitter Email
Answers.com

Errno.h

 
Wikipedia: Errno.h

errno.h is a header file in the standard library of C programming language. It defines macros to report error conditions through error codes.

The errno macro expands to an lvalue with type int, containing the last error code generated in any function using the errno facility.

Three macros expand to integer constants which represent the error codes:

  • EDOM results from a parameter outside a function's domain, for example sqrt(-1)
  • ERANGE results from a result outside a function's range, for example strtol("0xfffffffff",NULL,0)
  • EILSEQ results from an illegal character sequence, for example wcstombs(str, L"\xffff", 2)

POSIX compliant operating systems like UNIX or Linux may include other macros to represent other operating system error code numbers.

On December 19, 2003 the SCO Group issued DMCA notices to selected Fortune 1000 companies, alleging the errno.h file was copied from UNIX into Linux without authorization. Linus Torvalds, the creator and trademark holder of Linux, has denied SCO's claim, saying he wrote the code for Linux's version himself. See Error codes in Linux for standard error codes in Linux.

See also

External links


Search unanswered questions...
Enter a question here...
Search: All sources Community Q&A Reference topics
 
 
Learn More
Inttypes.h
Stdbool.h
Assert.h

Post a question - any question - to the WikiAnswers community:

 

Copyrights:

Wikipedia. This article is licensed under the Creative Commons Attribution/Share-Alike License. It uses material from the Wikipedia article "Errno.h" Read more