aboutsummaryrefslogtreecommitdiffstats
path: root/FICS/utils.c
diff options
context:
space:
mode:
authorMarkus Uhlin <markus@nifty-networks.net>2023-12-25 18:57:38 +0100
committerMarkus Uhlin <markus@nifty-networks.net>2023-12-25 18:57:38 +0100
commit3df38dc527a3113030bdc747432b4433a3da9469 (patch)
treeb5ae21644b9864d0eba959bc3204e84aefcc52b2 /FICS/utils.c
parent70f9298f90769a0998afced607d935ff0b1c3605 (diff)
Changed iswhitespace()
Diffstat (limited to 'FICS/utils.c')
-rw-r--r--FICS/utils.c12
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 *