#include #include #include #include #include volatile unsigned int variable = 0; volatile unsigned int print_variable = 0; void alarm_handler(int signum) { alarm(60); } int main() { signal(SIGALRM, alarm_handler); alarm(1); for (;;) { select(0, NULL, NULL, NULL, NULL); time_t t = time(NULL); struct tm tm = *localtime(&t); printf("%d-%d-%d %d:%d:%d\n", tm.tm_year + 1900, tm.tm_mon + 1, tm.tm_mday, tm.tm_hour, tm.tm_min, tm.tm_sec); } } ux.git/'>lcd4linux.git
lcd4linuxJonathan McCrohan
aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Expand)AuthorFilesLines
2000-04-10[lcd4linux @ 2000-04-10 04:40:53 by reinelt]reinelt5-31/+65
2000-04-07[lcd4linux @ 2000-04-07 05:42:20 by reinelt]reinelt6-17/+266
2000-04-05[lcd4linux @ 2000-04-05 05:58:36 by reinelt]reinelt4-17/+65