Package list ohcount / upstream/4.0.0+git20210223.6654d48 src / log.c
upstream/4.0.0+git20210223.6654d48

Tree @upstream/4.0.0+git20210223.6654d48 (Download .tar.gz)

log.c @upstream/4.0.0+git20210223.6654d48raw · 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);
}