cpp/string/byte/strerror

Returns a pointer to the textual description of the system error code, identical to the description that would be printed by std.

is usually acquired from the variable, however the function accepts any value of type. The contents of the string are locale-specific.

The returned string must not be modified by the program, but may be overwritten by a subsequent call to the function. is not required to be thread-safe. Implementations may be returning different pointers to static read-only string literals or may be returning the same pointer over and over, pointing at a static buffer in which places the string.

Return value
Pointer to a null-terminated byte string corresponding to the errno error code.