From 8f5cfc8166773295b733fa6370ccabfbaf1b688d Mon Sep 17 00:00:00 2001 From: Aaron Ball Date: Mon, 31 Oct 2022 09:08:20 -0600 Subject: src/common/catfile: Replace printf with putchar This should be much faster. --- src/common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/common.c b/src/common.c index db33bc0..15d1eae 100644 --- a/src/common.c +++ b/src/common.c @@ -25,7 +25,7 @@ int catfile(char* path) { return 2; while((c = fgetc(fd)) != EOF) - printf("%c", c); + putchar(c); fclose(fd); return 0; -- cgit v1.2.3