Package list ohcount / 6c6b3496-5c95-4881-94ad-331592f9fd83/main src / log.c
6c6b3496-5c95-4881-94ad-331592f9fd83/main

Tree @6c6b3496-5c95-4881-94ad-331592f9fd83/main (Download .tar.gz)

log.c @6c6b3496-5c95-4881-94ad-331592f9fd83/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);
}