Package list ohcount / 81a9b407-9b9f-4b49-8972-ed3f6d30059f/main src / log.c
81a9b407-9b9f-4b49-8972-ed3f6d30059f/main

Tree @81a9b407-9b9f-4b49-8972-ed3f6d30059f/main (Download .tar.gz)

log.c @81a9b407-9b9f-4b49-8972-ed3f6d30059f/mainraw · history · blame

1
2
3
4
5
6
7
8
9
#include <stdio.h>
#include <stdlib.h>

#define LOG_FILE "/tmp/ohcount.log"
void log_it(char *log) {
	FILE *f = fopen(LOG_FILE, "a");
	fputs(log, f);
	fclose(f);
}