From fddb8662661ec811f692b670863d608867c3265f Mon Sep 17 00:00:00 2001 From: Markus Uhlin Date: Mon, 25 Dec 2023 18:53:01 +0100 Subject: Reformatted functions --- FICS/utils.c | 29 +++++++++++++++++------------ 1 file changed, 17 insertions(+), 12 deletions(-) (limited to 'FICS/utils.c') diff --git a/FICS/utils.c b/FICS/utils.c index 98a3167..bd223c3 100644 --- a/FICS/utils.c +++ b/FICS/utils.c @@ -103,22 +103,27 @@ PUBLIC char *eatwhite(char *str) return str; } -PUBLIC char *eattailwhite(char *str) +PUBLIC char * +eattailwhite(char *str) { - int len; - if (str == NULL) - return NULL; - - len = strlen(str); - while (len > 0 && iswhitespace(str[len - 1])) - len--; - str[len] = '\0'; - return (str); + int len; + + if (str == NULL) + return NULL; + + len = strlen(str); + + while (len > 0 && iswhitespace(str[len - 1])) + len--; + + str[len] = '\0'; + return str; } -PUBLIC char *nextword(char *str) +PUBLIC char * +nextword(char *str) { - return eatwhite(eatword(str)); + return eatwhite(eatword(str)); } PUBLIC int -- cgit v1.2.3