Go to the first, previous, next, last section, table of contents.


sys_nerr

Syntax

#include <errno.h>

extern int sys_nerr;

Description

This variable gives the number of error messages in sys_errlist (see section sys_errlist).

Portability

not ANSI, not POSIX

Example

if (errno < sys_nerr)
  printf("Error: %s\n", sys_errlist[errno]);


Go to the first, previous, next, last section, table of contents.