diff options
author | Markus Uhlin <markus@nifty-networks.net> | 2023-12-25 18:53:01 +0100 |
---|---|---|
committer | Markus Uhlin <markus@nifty-networks.net> | 2023-12-25 18:53:01 +0100 |
commit | fddb8662661ec811f692b670863d608867c3265f (patch) | |
tree | e8bafef223891f752a81e6d6e5d3c721552692e2 /FICS/utils.c | |
parent | cce63f7d38bd3c275f95d1e527bff09e8c40c681 (diff) |
Reformatted functions
Diffstat (limited to 'FICS/utils.c')
-rw-r--r-- | FICS/utils.c | 29 |
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 |