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