diff options
Diffstat (limited to 'io/perror.c')
-rw-r--r-- | io/perror.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/io/perror.c b/io/perror.c new file mode 100644 index 0000000..df8a09f --- /dev/null +++ b/io/perror.c @@ -0,0 +1,10 @@ +#include "io.h" +#include <errno.h> +#include <string.h> + +void perror(char const *string) +{ + + fprintf(_stdstream_wrap(stream_error), "%s: %s", string, + strerror(errno)); +} |