4 #define SPLIT_COMMENTS 0001 /* # starts a comment */
5 #define SPLIT_QUOTES 0002 /* " and ' quote strings */
7 char **split(const char *s,
10 void (*error_handler)(const char *msg, void *u),
12 /* split @s@ up into fields. Return a null-pointer-terminated array
13 * of pointers to the fields. If @np@ is not a null pointer store the
14 * number of fields there. Calls @error_handler@ to report any
17 * split() operates on UTF-8 strings.
20 const char *quoteutf8(const char *s);
21 /* quote a UTF-8 string. Might return @s@ if no quoting is required. */