From: Robert Ransom Date: Wed, 22 Jun 2011 20:47:32 +0000 (-0700) Subject: Improve documentation of smartlist_split_string X-Git-Tag: tor-0.2.3.2-alpha~47^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2b5ebc70973b1c0dd62201908632733c0953a4ec;p=thirdparty%2Ftor.git Improve documentation of smartlist_split_string --- diff --git a/src/common/container.c b/src/common/container.c index da44b7fe68..1515c387ad 100644 --- a/src/common/container.c +++ b/src/common/container.c @@ -338,7 +338,8 @@ smartlist_insert(smartlist_t *sl, int idx, void *val) /** * Split a string str along all occurrences of sep, - * adding the split strings, in order, to sl. + * appending the (newly allocated) split strings, in order, to + * sl. Return the number of strings added to sl. * * If flags&SPLIT_SKIP_SPACE is true, remove initial and * trailing space from each entry. @@ -347,7 +348,7 @@ smartlist_insert(smartlist_t *sl, int idx, void *val) * If flags&SPLIT_STRIP_SPACE is true, strip spaces from each * split string. * - * If max>0, divide the string into no more than max pieces. If + * If max\>0, divide the string into no more than max pieces. If * sep is NULL, split on any sequence of horizontal space. */ int