#include <stdio.h>
#include <stdarg.h>
void logTest(const char* content, ...)
{
FILE* logfile = fopen("log.txt", "a");
if(logfile)
{
fprintf(logfile, "########## NEW LOG ########\n");
va_list arg;
va_start(arg, content);
vfprintf(logfile, content, arg);
va_end(arg);
int status = fflush(logfile);
fclose(logfile);
}
}
#include <stdarg.h>
void logTest(const char* content, ...)
{
FILE* logfile = fopen("log.txt", "a");
if(logfile)
{
fprintf(logfile, "########## NEW LOG ########\n");
va_list arg;
va_start(arg, content);
vfprintf(logfile, content, arg);
va_end(arg);
int status = fflush(logfile);
fclose(logfile);
}
}