FENIX_libc/stdio/perror.c

8 lines
146 B
C
Raw Normal View History

2020-12-01 23:40:03 +00:00
#include <stdio.h>
#include <string.h>
#include <errno.h>
void perror(const char * str) {
fprintf(stderr, "%s: %s\n", str, strerror(errno));
}