5 /* Prints a time on a single line of the console.
6 * I wrote this app so that I could measure times by repeatedly pressing
11 void strip_newlines(char *str)
14 size_t str_len = strlen(str);
16 for (i = 0; i < str_len; i++) {
27 time_t t = time(NULL);
28 struct tm *tm = localtime(&t);