This is a simple question ... is there a way to convert struct tm ct;to a long integer? this is what my code looks like:
struct tm ct;
scanf("%d", &ct.tm_sec);
scanf("%d", &ct.tm_min);
scanf("%d", &ct.tm_hour);
scanf("%d", &ct.tm_mday);
scanf("%d", &ct.tm_mon);
scanf("%d", &ct.tm_year);
source
share