add date to printevents.c

This commit is contained in:
Liam Waldron 2023-04-14 11:26:30 -04:00
parent a41f009257
commit 73cf167096

View File

@ -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);