aboutsummaryrefslogtreecommitdiffstats
path: root/FICS/utils.c
diff options
context:
space:
mode:
Diffstat (limited to 'FICS/utils.c')
-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