add date to printevents.c

This commit is contained in:
lw-everestlinux committed 2023-04-14 11:26:30 -04:00
1 parent a41f009257
commit 73cf167096
1 file changed
+4
+4
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);