@node sys_errlist, stdio @subheading Syntax @example #include extern char *sys_errlist[]; @end example @subheading Description This array contains error messages, indexed by @code{errno}, that describe the errors. @subheading Portability @portability !ansi, !posix @subheading Example @example printf("Error: %s\n", sys_errlist[errno]); @end example @c ---------------------------------------------------------------------- @node sys_nerr, stdio @subheading Syntax @example #include extern int sys_nerr; @end example @subheading Description This variable gives the number of error messages in @code{sys_errlist} (@pxref{sys_errlist}). @subheading Portability @portability !ansi, !posix @subheading Example @example if (errno < sys_nerr) printf("Error: %s\n", sys_errlist[errno]); @end example