From e782bef935d5c4beb070cdd8abb14493eac67262 Mon Sep 17 00:00:00 2001 From: Elliott Pardee Date: Fri, 12 Jun 2015 05:09:05 -0400 Subject: [PATCH] some comments --- c/typeprint.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/c/typeprint.c b/c/typeprint.c index 43bef02..fb20cbd 100644 --- a/c/typeprint.c +++ b/c/typeprint.c @@ -1,3 +1,6 @@ +/* vypr's typeprint */ +/* https://github.com/vypr/typeprint */ + #include #include #include @@ -28,7 +31,10 @@ process(char *name) int x; while ((x = fgetc(file)) != EOF) { printf("%c", x); + + /* flush stdout, because it won't look like typing without. */ fflush(stdout); + nanosleep(&ts, NULL); }