/*---------------------------------------------------------------------*

Name            strerror - returns pointer to error message string

Usage           char *strerror(char *str);

Prototype in    string.h

Description     strerror allows you to generate customized error
                messages; it returns a pointer to a null-terminated string
                containing an error message.

                If str is NULL, the return value contains the most recently
                generated system error message; this string is null-terminated.

                If str is not NULL, the return value contains str (your
                customized error message), a colon, a space, the most recently
                generated system error message, and a newline.

                The length of str should be 94 characters or less.

                strerror is different from perror in that it does not print
                error messages.

                For accurate error handling, strerror should be called as soon
                as a library routine generates an error return.

Return value    strerror returns a pointer to a constructed error
                string. The error message string is constructed in a static
                buffer that is over-written with each call to perror.

*---------------------------------------------------------------------*/
char * _FARFUNC strerror(int errnum)
{
    return  _maperror(errnum, NULL);
}
Пример #2
0
char * _RTLENTRY _EXPFUNC strerror(int errnum)
{
    return  _maperror(errnum, NULL);
}
char * _FARFUNC _strerror(const char *s)
{
    return _maperror(errno, s);
}
Пример #4
0
char * _RTLENTRY _EXPFUNC _strerror(const char *s)
{
    return _maperror(errno, s);
}