strerror

Syntax

char* strerror(int errnum)

Arguments

errnum
The requested error number.

Return

A string describing the error.

Description

Return a string describing the specified error number errnum. If the error number is not known, an unknown error string is returned instead.
The string returned remains valid only until the next call to the strerror function.