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

19
libc/stdio/vfprintf.c Normal file
View File

@@ -0,0 +1,19 @@
#include <stdio.h>
#include "__printf.h"
static void _out_file(struct __printf_backend *bk, char ch)
{
FILE *fp = bk->arg;
if (ch) {
fputc(ch, fp);
}
}
int vfprintf(FILE *fp, const char *restrict format, va_list arg)
{
struct __printf_backend bk = {};
bk.out = _out_file;
bk.arg = fp;
return __xprintf(&bk, format, arg);
}