From 5cb189ea37c2fe9ee5e1ee64f7e3d19a14a06b87 Mon Sep 17 00:00:00 2001 From: Elliott Pardee Date: Sun, 7 Jun 2015 04:10:23 -0400 Subject: [PATCH] i can not into tab --- c/typeprint.c | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/c/typeprint.c b/c/typeprint.c index 608c4bc..5d57d6e 100644 --- a/c/typeprint.c +++ b/c/typeprint.c @@ -5,32 +5,32 @@ static int process(char *name, struct timespec *ts) { - FILE *file = fopen(name, "r"); + FILE *file = fopen(name, "r"); - if (file == 0){ - fprintf(stderr, "[err] you either gave me an invalid file, or no file at all"); - return -1; - } + if (file == 0){ + fprintf(stderr, "[err] you either gave me an invalid file, or no file at all"); + return -1; + } - int x; - while ((x = fgetc(file)) != EOF) { - printf("%c", x); - nanosleep(ts, NULL); - } + int x; + while ((x = fgetc(file)) != EOF) { + printf("%c", x); + nanosleep(ts, NULL); + } - return 0; + return 0; } int main(int argc, char *argv[]) { - char *argv0; + char *argv0; - struct timespec ts; - ts.tv_sec = 0; - ts.tv_nsec = 10 * 1000000; + struct timespec ts; + ts.tv_sec = 0; + ts.tv_nsec = 10 * 1000000; - process(argv[1], &ts); + process(argv[1], &ts); - return 0; + return 0; } \ No newline at end of file