Blame | Last modification | View Log | Download | RSS feed
/* $Id: stderr.c 5 2024-08-25 11:58:10Z nishi $ */
#include "../is_log.h"
#include <stdio.h>
#include <time.h>
void is_log(const char* msg) {
char date[128];
time_t t = time(NULL);
struct tm* tm = localtime(&t);
strftime(date, 128, "%a %b %d %H:%M:%S %Z %Y", tm);
fprintf(stderr, "[%s] %s\n", date, msg);
}