From 3df38dc527a3113030bdc747432b4433a3da9469 Mon Sep 17 00:00:00 2001 From: Markus Uhlin Date: Mon, 25 Dec 2023 18:57:38 +0100 Subject: Changed iswhitespace() --- FICS/utils.c | 12 +++++------- 1 file 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 * -- cgit v1.2.3