std::perror

From Cppreference

< cpp | io | c
Jump to: navigation, search
Defined in header <cstdio>

void perror( const char *s );

Prints the contents of the string pointed to by s and an implementation-defined error message corresponding to the global variable errno to stderr

Contents

[edit] Parameters

s - pointer to a null-terminated string with explanatory message

[edit] Return value

(none)

[edit] Example

[edit] See also

feof
checks for the end-of-file
(function)
ferror
checks for a file error
(function)