< C++ Programming < Code < Standard C Library < Functions

strerror

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
This article is issued from Wikibooks. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.