aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarkus Uhlin <markus@nifty-networks.net>2023-12-25 18:53:01 +0100
committerMarkus Uhlin <markus@nifty-networks.net>2023-12-25 18:53:01 +0100
commitfddb8662661ec811f692b670863d608867c3265f (patch)
treee8bafef223891f752a81e6d6e5d3c721552692e2
parentcce63f7d38bd3c275f95d1e527bff09e8c40c681 (diff)
Reformatted functions
-rw-r--r--FICS/utils.c29
1 files changed, 17 insertions, 12 deletions
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