Package list ohcount / c865d4db-f4b2-4b3e-8e76-e6475c6514d2/main src / log.c
c865d4db-f4b2-4b3e-8e76-e6475c6514d2/main

Tree @c865d4db-f4b2-4b3e-8e76-e6475c6514d2/main (Download .tar.gz)

log.c @c865d4db-f4b2-4b3e-8e76-e6475c6514d2/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);
}