This commit is contained in:
2025-11-11 21:49:23 -05:00
parent 22242dc532
commit f764bc6759
9 changed files with 140 additions and 47 deletions

10
util.c Normal file
View File

@@ -0,0 +1,10 @@
#include "util.h"
#include <time.h>
int getyear()
{
time_t now = time(NULL);
struct tm *t = localtime(&now);
return t->tm_year + 1900;
}