cat

C89 implementation of cat
git clone git://ssnf.xyz/cat
Log | Files | Refs

commit 17474536c52f67f7db97ba196d368429e02297d4
parent 99d06fe277307137bac2147ecb9b299c79b42453
Author: ssnf <ssnf@ssnf.xyz>
Date:   Fri, 16 Jul 2021 22:32:01 +0000

made it easier to read

Diffstat:
Mcat.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cat.c b/cat.c @@ -8,7 +8,7 @@ main(int argc, char* argv[]) int i, n; for (i = 1; i < argc; ++i) { - if (*argv[i] == '-' && *(argv[i]+1) == '\0') + if (argv[i][0] == '-' && argv[i][1] == '\0') f = stdin; else { f = fopen(argv[i], "r");