diff options
author | Aaron Ball <nullspoon@oper.io> | 2022-10-31 09:08:20 -0600 |
---|---|---|
committer | Aaron Ball <nullspoon@oper.io> | 2022-10-31 09:08:20 -0600 |
commit | 8f5cfc8166773295b733fa6370ccabfbaf1b688d (patch) | |
tree | da2a265d30771b4bad6bd205ff4d7e8838f17fc3 | |
parent | d9ea7ebf0ac80a93e2d15bf94a9c6ab8b77168c4 (diff) | |
download | oper.io-8f5cfc8166773295b733fa6370ccabfbaf1b688d.tar.gz oper.io-8f5cfc8166773295b733fa6370ccabfbaf1b688d.tar.xz |
src/common/catfile: Replace printf with putchar
This should be much faster.
-rw-r--r-- | src/common.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |