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

From Wikibooks, open books for an open world
Jump to: navigation, search

strerror[edit]

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