Initial commit

This commit is contained in:
2026-08-31 21:04:48 +03:00
commit c0d5110ea7
347 changed files with 57952 additions and 0 deletions
+40
View File
@@ -0,0 +1,40 @@
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
void log_(const char *fmt, ...)
{
#if 1
va_list ap;
char *msg=(char*)malloc(1024);
if(msg)
{
va_start(ap, fmt);
vsprintf(msg, fmt, ap);
printf("Log: %s\n",msg);
va_end(ap);
free(msg);
}
#endif
}
void logerr(const char *fmt, ...)
{
#if 1
va_list ap;
char *msg=(char*)malloc(1024);
if(msg)
{
va_start(ap, fmt);
vsprintf(msg, fmt, ap);
printf("Error: %s\n",msg);
va_end(ap);
free(msg);
}
#endif
}