cc -o test test.c
Then compare
strace -Ttt ./test
with
TZ=:/etc/localtime strace -Ttt TZ=:/etc/localtime
#include <time.h> | |
#include <stdio.h> | |
int | |
main(int argc, char *argv[]) | |
{ | |
int i = 0; | |
time_t timep; | |
printf("Greetings!\n"); | |
for(i = 0; i < 10; i++) { | |
time(&timep); | |
localtime(&timep); | |
} | |
printf("Bye, bye!\n"); | |
return 0; | |
} |