RAD Studio
ContentsIndex
PreviousUpNext
_sys_errlist

Header File 

errno.h 

Syntax 

extern char * _sys_errlist[ ]; 

Description 

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

To provide more control over message formatting, the array of message strings is provided in _sys_errlist. You can use errno as an index into the array to find the string corresponding to the error number. The string does not include any newline character. 

Example 

printf("%s\n", _sys_errlist[ENOPATH]); 

This code statement that uses the Mnemonic ENOPATH will output the string "Path not found". 

The following table gives mnemonics and their meanings for the values stored in _sys_errlist. The list is alphabetically ordered for ease your reading convenience. For the numerical ordering, see the header file errno.h.

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!