meta: move photon/libc to root
This commit is contained in:
13
libc/stdio/perror.c
Normal file
13
libc/stdio/perror.c
Normal file
@@ -0,0 +1,13 @@
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <errno.h>
|
||||
|
||||
void perror(const char *s)
|
||||
{
|
||||
if (s) {
|
||||
fprintf(stderr, "%s: %s\n", s, strerror(errno));
|
||||
} else {
|
||||
fputs(strerror(errno), stderr);
|
||||
fputc('\n', stderr);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user