_sys_nerr

De RAD Studio
Aller à : navigation, rechercher

Remonter à errno.h - Index


Header File

errno.h

Syntax

extern int _sys_nerr;

Description

_sys_nerr is used by perror to print error messages when certain library routines fail to accomplish their appointed tasks.

This variable is defined as the number of error message strings in _sys_errlist.

Example

#include <errno.h>
#include <stdio.h>


int main()
{
   int i = 0;

   // Global value _sys_nerr also defined in errno.h
   while(i < _sys_nerr) {
        printf("%s\n", _sys_errlist[i]);
        i++;
   }
   return 0;
}