Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Watcom C/C++ v10.0 : C library - <b>synopsis:</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
Synopsis:
    #include <string.h>
    char *strerror( int errnum );

Description:
    The  strerror function maps the error number contained in errnum to an
    error message.

Returns:
    The  strerror function returns a pointer to the error message.  The
    array containing the error string should not be modified by the program.
     This array may be overwritten by a subsequent call to the  strerror
    function.

See Also:
    perror

Example:
    #include <stdio.h>
    #include <string.h>
    #include <errno.h>

    void main()
      {
        FILE *fp;

        fp = fopen( "file.nam", "r" );
        if( fp == NULL ) {
            printf( "Unable to open file: %s\n",
                     strerror( errno ) );
        }
      }

Classification:
    ANSI

Systems:
    All

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson