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

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

strerror[edit | edit source]

#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