add logging

This commit is contained in:
2025-10-21 00:10:51 +02:00
parent a82fb80a99
commit 8b26742c63
3 changed files with 33 additions and 3 deletions
+14
View File
@@ -0,0 +1,14 @@
#include "stk_log.h"
#include <stdarg.h>
#include <stdio.h>
void stk_log_file(FILE *fp, const char *fmt, ...)
{
va_list args;
va_start(args, fmt);
vfprintf(fp, fmt, args);
fputc('\n', fp);
va_end(args);
}