VMS Help  —  CRTL  strerror_r
    Maps the error number in error_code to a locale-dependent error
    message sring (reentrant).

    Format

      #include <string.h>

      int strerror_r(int error_code, char *buf, size_t buflen);

1  –  Arguments

 error_code

    An error code.

 buf

    A pointer to a buffer where the function can store the error message.

 buflen

    The length of the buffer (in characters).

2  –  Description

    The strerror_r function is the reentrant version of strerror. The
    strerror_r function uses the error number in error_code to retrieve
    the appropriate locale dependent error message. The contents of the
    error message strings are determined by the LC_MESSAGES category of
    the program's current locale.

    If error_code is EVMSERR, the function looks at vaxc$errno to get the
    OpenVMS error condition.

3  –  Return Values

    0                  On success, the error message is in the character
                       array pointed to by buf. The array is buflen
                       characters long and should have space for the
                       error message and the terminating null character.
Close Help