Jump to content

C++ Programming/Code/Standard C Library/Functions/strerror

From Wikibooks, open books for an open world

strerror

[edit | edit source]
Syntax
#include <cstring>
char *strerror( int num );

The function strerror() returns an implementation defined string corresponding to num. If an error occurred, the error is located within the global variable errno.

Related topics
perror