2 * UCW Library -- Word Splitting
4 * (c) 1997 Martin Mares <mj@ucw.cz>
5 * (c) 2004 Robert Spalek <robert@ucw.cz>
7 * This software may be freely distributed and used according to the terms
8 * of the GNU Lesser General Public License.
12 #include <ucw/chartype.h>
13 #include <ucw/string.h>
18 str_sepsplit(char *str, uint sep, char **rec, uint max)
24 str = strchr(str, sep);
34 str_wordsplit(char *src, char **dst, uint max)
50 while (*src && *src != '"')
58 while (*src && !Cspace(*src))