aboutsummaryrefslogtreecommitdiffstats
path: root/FICS/utils.c
diff options
context:
space:
mode:
Diffstat (limited to 'FICS/utils.c')
-rw-r--r--FICS/utils.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/FICS/utils.c b/FICS/utils.c
index c9e89d4..bd1a213 100644
--- a/FICS/utils.c
+++ b/FICS/utils.c
@@ -92,6 +92,9 @@ getword(char *str)
return word;
}
+/*
+ * Returns a pointer to the first whitespace in the argument.
+ */
PUBLIC char *
eatword(char *str)
{
@@ -100,6 +103,9 @@ eatword(char *str)
return str;
}
+/*
+ * Returns a pointer to the first non-whitespace char in the argument.
+ */
PUBLIC char *
eatwhite(char *str)
{
@@ -108,6 +114,9 @@ eatwhite(char *str)
return str;
}
+/*
+ * Returns a pointer to the same string with trailing spaces removed.
+ */
PUBLIC char *
eattailwhite(char *str)
{
@@ -125,6 +134,9 @@ eattailwhite(char *str)
return str;
}
+/*
+ * Returns the next word in a given string.
+ */
PUBLIC char *
nextword(char *str)
{