Codebase list ohcount / 85ef4224-9298-4dc6-8a5a-b1f66d4179b3/main src / log.c
85ef4224-9298-4dc6-8a5a-b1f66d4179b3/main

Tree @85ef4224-9298-4dc6-8a5a-b1f66d4179b3/main (Download .tar.gz)

log.c @85ef4224-9298-4dc6-8a5a-b1f66d4179b3/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);
}