Package list ohcount / 420c4794-75b8-4551-a2c5-42f5fb1d3fbf/main src / log.c
420c4794-75b8-4551-a2c5-42f5fb1d3fbf/main

Tree @420c4794-75b8-4551-a2c5-42f5fb1d3fbf/main (Download .tar.gz)

log.c @420c4794-75b8-4551-a2c5-42f5fb1d3fbf/main

3581673
 
 
 
 
 
 
 
 
 
 
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);
}