StupidLog

From Stack Overflow
Jump to: navigation, search
static void stupidLog(const char *filename, const char *message, ...)
{
    FILE *f;
    va_list va;
    va_start(va, message);
    f = fopen(filename, "a");
    if (f)
    {
        vfprintf(f, message, va);
        fclose(f);
    }
    va_end(va);
}
Personal tools