#include todays_date() { extern int today, this_month, this_year; struct tm *p; long t; time(&t); p = localtime(&t); today = p->tm_mday; this_month = p->tm_mon + 1; this_year = p->tm_year + 1900; }