Go forward to strlen
Go backward to strcspn
Go up to Strings
Go to the top op libc

`strerror'--convert error number to string

     #include <string.h>
     char *strerror(int ERRNUM);
`strerror' converts the error number ERRNUM into a string.  The value
of ERRNUM is usually a copy of `errno'.  If `errnum' is not a known
error number, the result points to an empty string.
   This implementation of `strerror' prints out the following strings
for each of the values defined in ``errno.h'':
     Arg list too long
     Permission denied
     Address already in use
     Advertise error
     Address family not supported by protocol family
     No more processes
     Socket already connected
     Bad file number
     Bad message
     Device or resource busy
     No children
     Communication error
     Software caused connection abort
     Connection refused
     Destination address required
     File exists
     Math argument
     Bad address
     File too large
     Host is down
     Host is unreachable
     Identifier removed
     Connection already in progress
     Interrupted system call
     Invalid argument
     I/O error
     Socket is already connected
     Is a directory
     Cannot access a needed shared library
     Accessing a corrupted shared library
     Cannot exec a shared library directly
     Attempting to link in more shared libraries than system limit
     `.lib' section in a.out corrupted
     Too many open files
     Too many links
     Message too long
     Multihop attempted
     File or path name too long
     Network interface not configured
     Network is unreachable
     Too many open files in system
     No such device
     No such file or directory
     Exec format error
     No lock
     Virtual circuit is gone
     Not enough space
     No message of desired type
     Machine is not on the network
     No package
     Protocol not available
     No space left on device
     No stream resources
     Not a stream
     Function not implemented
     Block device required
     Socket is not connected
     Not a directory
     Directory not empty
     Socket operation on non-socket
     Not supported
     Not a character device
     No such device or address
     Not owner
     Broken pipe
     Protocol error
     Protocol wrong type for socket
     Unknown protocol
     Result too large
     Resource is remote
     Read-only file system
     Can't send after socket shutdown
     Socket type not supported
     Illegal seek
     No such process
     Srmount error
     Stream ioctl timeout
     Connection timed out
     Text file busy
     Cross-device link
This function returns a pointer to a string.  Your application must not
modify that string.
ANSI C requires `strerror', but does not specify the strings used for
each error number.
   Although this implementation of `strerror' is reentrant, ANSI C
declares that subsequent calls to `strerror' may overwrite the result
string; therefore portable code cannot depend on the reentrancy of this
   This implementation of `strerror' provides for user-defined
extensibility.  `errno.h' defines __ELASTERROR, which can be used as a
base for user-defined error values.  If the user supplies a routine
named `_user_strerror', and ERRNUM passed to `strerror' does not match
any of the supported values, `_user_strerror' is called with ERRNUM as
its argument.
   `_user_strerror' takes one argument of type INT, and returns a
character pointer.  If ERRNUM is unknown to `_user_strerror',
`_user_strerror' returns NULL.  The default `_user_strerror' returns
NULL for all input values.
   `strerror' requires no supporting OS subroutines.