diff options
author | Jakob Kaivo <jkk@ung.org> | 2023-11-14 16:31:31 -0500 |
---|---|---|
committer | Jakob Kaivo <jkk@ung.org> | 2023-11-14 16:31:31 -0500 |
commit | 0030c5ea720f492fcaed2cd5ebb52f7ad54170fd (patch) | |
tree | 2c507618e3c22ce1062d823200d0811375797fcd /src/ctype/isprint.c | |
parent | 88aa612a4e75833368f6c4552d95d1d5c1232555 (diff) |
return 0 if c is EOF
Diffstat (limited to 'src/ctype/isprint.c')
-rw-r--r-- | src/ctype/isprint.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ctype/isprint.c b/src/ctype/isprint.c index e7843442..b0aa2121 100644 --- a/src/ctype/isprint.c +++ b/src/ctype/isprint.c @@ -10,7 +10,7 @@ int isprint(int c) ASSERT_REPRESENTABLE(c, 0, UCHAR_MAX, unsigned char, EOF); - return map[c] & CT_PRINT; + return c == EOF ? 0 : map[c] & CT_PRINT; } /*** |