/* a sample program that return local time. */ #include #include int main() { time_t *timer; timer = malloc(sizeof(time_t)); *timer = time(NULL); //return system time printf("%s", ctime(timer)); }