Package list ohcount / 85d5c3b4-c1f3-4d55-a24f-4c231b8d4c21/main src / log.c
85d5c3b4-c1f3-4d55-a24f-4c231b8d4c21/main

Tree @85d5c3b4-c1f3-4d55-a24f-4c231b8d4c21/main (Download .tar.gz)

log.c @85d5c3b4-c1f3-4d55-a24f-4c231b8d4c21/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);
}