summaryrefslogtreecommitdiffstats
path: root/include/sh_string.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/sh_string.h')
-rw-r--r--include/sh_string.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/sh_string.h b/include/sh_string.h
index a0da6c2..dfa0cdb 100644
--- a/include/sh_string.h
+++ b/include/sh_string.h
@@ -67,6 +67,8 @@ size_t sh_string_read_cont(sh_string * s, FILE * fp, size_t maxlen, char *cont);
* The number of fields is returned in 'nfields', their
* lengths in 'lengths'.
* A single delimiter will return two empty fields.
+ * The returned array is allocated memory, and its fields
+ * are modified parts of the 'line' parameter.
*/
char ** split_array(char *line, unsigned int * nfields,
char delim, size_t * lengths);
@@ -77,6 +79,8 @@ char ** split_array(char *line, unsigned int * nfields,
* The number of fields is returned in nfields.
* An empty string will return zero fields.
* If nfields < actual fields, last string will be remainder.
+ * The returned array is allocated memory, and its fields
+ * are modified parts of the 'line' parameter.
*/
char ** split_array_ws(char *line, unsigned int * nfields, size_t * lengths);