2 * (c) Oleg Puchinin 2006
3 * graycardinalster@gmail.com
7 #include <gclib/gclib.h>
8 #include <gclib/gclib_c.h>
11 __export DArray
* Dsplit (char * STR
, char *ch
)
13 DArray
* ret
= new DArray(128);
15 char * buf
= strdup (STR
);
28 while((S
= strstr (ptr
, ch
)) && S
) {
31 ret
->add (strdup (ptr
));
36 ret
->add (strdup (ptr
));