add date to printevents.c
This commit is contained in:
parent
a41f009257
commit
73cf167096
@ -1,5 +1,6 @@
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <time.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#include "../include/libcolor.h"
|
||||
@ -18,6 +19,9 @@ char printevents() {
|
||||
exit(1);
|
||||
}
|
||||
|
||||
time_t t = time(NULL);
|
||||
printf("[:=] To do for %s", ctime(&t));
|
||||
|
||||
contents = fgetc(fp);
|
||||
while (contents != EOF) {
|
||||
printf ("%c", contents);
|
||||
|
Loading…
Reference in New Issue
Block a user