Name
strerror function — Retrieves error message text
Synopsis
char* strerror(int errnum)
The strerror
function
returns a pointer to an error message string that corresponds to the
error number errnum
. The message
is the same as that printed by the perror
function.
A program must not modify the array returned by strerror
, and subsequent calls to strerror
can overwrite the array.
Get C++ In a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.