From 9a041591acd578759041cdb2f142420eb3e5d00f Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Sat, 1 May 2004 21:41:23 +0000 Subject: Finish documenting the functions in common svn:r1758 --- src/common/util.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'src/common/util.c') diff --git a/src/common/util.c b/src/common/util.c index 7fd01edadb..0270937985 100644 --- a/src/common/util.c +++ b/src/common/util.c @@ -724,7 +724,8 @@ void strmap_free(strmap_t *map, void (*free_val)(void*)) */ /* Return a pointer to the first char of s that is not whitespace and - * not a comment. */ + * not a comment, or to the terminating NUL if no such character exists. + */ const char *eat_whitespace(const char *s) { tor_assert(s); @@ -741,14 +742,17 @@ const char *eat_whitespace(const char *s) { return s; } -/* Return a pointer to the first char of s that is not a space or a tab. */ +/* Return a pointer to the first char of s that is not a space or a tab, + * or to the terminating NUL if no such character exists. */ const char *eat_whitespace_no_nl(const char *s) { while(*s == ' ' || *s == '\t') ++s; return s; } -/* Return a pointer to the first char of s that is whitespace or '#' or '\0 */ +/* Return a pointer to the first char of s that is whitespace or '#', + * or to the terminating NUL if no such character exists. */ + */ const char *find_whitespace(const char *s) { tor_assert(s); -- cgit v1.2.3-54-g00ecf