meta: move photon/libc to root

This commit is contained in:
2026-02-08 20:45:25 +00:00
parent f00e74260d
commit 345a37962e
140 changed files with 0 additions and 0 deletions

13
libc/stdio/perror.c Normal file
View 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);
}
}