X-Git-Url: http://club.cc.cmu.edu/~cmccabe/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=simple_time.c;h=59064090d459622a735d964a61123352fb2145ad;hb=8b2514ac2e790ad22efcc0d7f35580dc579caed4;hp=eea422f497ef08dc0273739d7f607226813ef493;hpb=d3b13f018be93d91da13ec029769be24280a319a;p=cmccabe-bin diff --git a/simple_time.c b/simple_time.c index eea422f..5906409 100644 --- a/simple_time.c +++ b/simple_time.c @@ -1,6 +1,7 @@ #include #include #include +#include /* Prints a time on a single line of the console. * I wrote this app so that I could measure times by repeatedly pressing @@ -23,7 +24,7 @@ int main(void) { while (1) { char str[27]; - size_t i, len; + size_t len; time_t t = time(NULL); struct tm *tm = localtime(&t);