diff options
author | Markus Uhlin <markus@nifty-networks.net> | 2023-12-25 18:57:38 +0100 |
---|---|---|
committer | Markus Uhlin <markus@nifty-networks.net> | 2023-12-25 18:57:38 +0100 |
commit | 3df38dc527a3113030bdc747432b4433a3da9469 (patch) | |
tree | b5ae21644b9864d0eba959bc3204e84aefcc52b2 /FICS/utils.c | |
parent | 70f9298f90769a0998afced607d935ff0b1c3605 (diff) |
Changed iswhitespace()
Diffstat (limited to 'FICS/utils.c')
-rw-r--r-- | FICS/utils.c | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/FICS/utils.c b/FICS/utils.c index facefab..1a4d5dc 100644 --- a/FICS/utils.c +++ b/FICS/utils.c @@ -60,14 +60,12 @@ PUBLIC int count_lines(FILE *fp) return nl; } -PUBLIC int iswhitespace(int c) +PUBLIC int +iswhitespace(int c) { - if ((c < ' ') || (c == '\b') || (c == '\n') || - (c == '\t') || (c == ' ')) { /* white */ - return 1; - } else { - return 0; - } + if (c < ' ' || c == '\b' || c == '\n' || c == '\t' || c == ' ') + return 1; + return 0; } PUBLIC char * |