.STRERROR - error message associated with number.

Alternate Entry Name: __strer

Usage:

B:
   msg = .strerror(errnum);
C:
   char *__strerror(int errnum);
   /* Note: TWO leading underscores */

Where:

errnum
is an error number.
msg
points to an error diagnostic associated with the given error number. If "errnum" matches the error number of the currently posted message, "msg" will point to the posted message; otherwise, it points to a default message associated with the given error number.

Description:

.STRERROR returns a pointer to an error diagnostic message for the given error number. When "errnum" matches the error number of the currently posted message, .STRERROR returns the posted message; otherwise, it returns a default message for the given error number.

See Also:

expl b lib strerror
for a version that always returns the default error message.
expl b lib .perror
to output the error message returned by .STRERROR.
expl b lib .epost
for more about posted error messages.

Copyright © 1996, Thinkage Ltd.