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