summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2016-01-24 08:03:55 +0100
committerSébastien Helleu <flashcode@flashtux.org>2016-01-24 08:03:55 +0100
commitcd23a5fa925d857bc8624a4c2fa12a0b5829de98 (patch)
treecb276f92d3dca26b05d6d4ddb22ca8ae84ca305c /src/core
parent1a94193147337b4c540febe258b777b635d34bc6 (diff)
downloadweechat-cd23a5fa925d857bc8624a4c2fa12a0b5829de98.zip
doc: add an example in function string_split (plugin API reference)
Diffstat (limited to 'src/core')
-rw-r--r--src/core/wee-string.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/core/wee-string.c b/src/core/wee-string.c
index cbc773549..02797d381 100644
--- a/src/core/wee-string.c
+++ b/src/core/wee-string.c
@@ -1594,23 +1594,23 @@ string_replace_regex (const char *string, void *regex, const char *replace,
*
* Examples:
* string_split ("abc de fghi ", " ", 0, 0, &argc)
- * ==> argc == 3
- * array[0] == "abc"
+ * ==> array[0] == "abc"
* array[1] == "de"
* array[2] == "fghi"
* array[3] == NULL
+ * argc == 3
* string_split ("abc de fghi ", " ", 1, 0, &argc)
- * ==> argc == 3
- * array[0] == "abc de fghi"
+ * ==> array[0] == "abc de fghi"
* array[1] == "de fghi"
* array[2] == "fghi"
* array[3] == NULL
+ * argc == 3
* string_split ("abc de fghi ", " ", 2, 0, &argc)
- * ==> argc == 3
- * array[0] == "abc de fghi "
+ * ==> array[0] == "abc de fghi "
* array[1] == "de fghi "
* array[2] == "fghi "
* array[3] == NULL
+ * argc == 3
*/
char **