This commit is contained in:
2025-07-14 23:07:13 -04:00
parent d6cf8c5dd6
commit 3a9d52c513
10 changed files with 40 additions and 6 deletions

14
core/print.c Normal file
View File

@@ -0,0 +1,14 @@
#include "print.h"
#include <stdarg.h>
#include <stdio.h>
int printfn(char *format, ...) {
int len;
va_list args;
va_start(args, format);
fprintf(stderr, "yait: ");
len = vfprintf(stderr, format, args);
putchar('\n');
va_end(args);
return len;
}