Str.strerror

Returns a string corresponding to the given error code, e.g. "no such process". Unlike strerror(), this always returns a string in UTF-8 encoding, and the pointer is guaranteed to remain valid for the lifetime of the process.

Note that the string may be translated according to the current locale.

The value of %errno will not be changed by this function.

struct Str
static
string
strerror
(
int errnum
)

Parameters

errnum int

the system error number. See the standard C %errno documentation

Return: a UTF-8 string describing the error code. If the error code is unknown, it returns a string like "unknown error (<code>)".

Meta