aboutsummaryrefslogtreecommitdiffstats
path: root/FICS/utils.c
diff options
context:
space:
mode:
authorMarkus Uhlin <markus@nifty-networks.net>2023-12-28 00:25:17 +0100
committerMarkus Uhlin <markus@nifty-networks.net>2023-12-28 00:25:17 +0100
commit0a7ac3f4acb9d3de00eb2160279ecf5a5041e133 (patch)
tree4039f94fec95293f0e7cd4cc9c79bc646ffcd10e /FICS/utils.c
parentdb5d6e6cc75e8124b85fc991c52c9419ccb0f0b4 (diff)
Moved comments and added argument lists
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)
{