97 static char *doGetWord(
char *buffer,
char *word,
int maxlen,
BOOL comma);
130 static char *doGetWord(
char *buffer,
char *word,
int maxlen,
BOOL comma)
151 for(i=0, j=0; chp[i]; i++)
223 if(*chp ==
',') chp++;
225 if(*chp ==
'\0') chp =
NULL;
270 return(doGetWord(buffer, word, maxlen,
TRUE));
302 return(doGetWord(buffer, word, maxlen,
FALSE));
331 int maxItemLen = minItemLen-1,
339 for(c=
string; *c; c++)
343 if(itemLen > maxItemLen)
344 maxItemLen = itemLen;
349 if(itemLen > maxItemLen)
350 maxItemLen = itemLen;
356 if((items = (
char **)
blArray2D(
sizeof(
char), nitems+1,
362 for(i=0; i<nitems; i++)
364 if((c = strchr(buffer,
','))!=
NULL)
366 strncpy(items[i], buffer, maxItemLen);
369 items[nitems][0] =
'\0';
401 nitems = strlen(
string);
404 if((items = (
char **)
blArray2D(
sizeof(
char), nitems+1, 2))==
NULL)
408 for(i=0; i<nitems; i++)
410 items[i][0] =
string[i];
413 items[nitems][0] =
'\0';
char * blGetWordNC(char *buffer, char *word, int maxlen)
char * blGetWord(char *buffer, char *word, int maxlen)
char ** blArray2D(int size, int dim1, int dim2)
Include file for 2D/3D array functions.
char ** blSplitStringOnChars(char *string)
char ** blSplitStringOnCommas(char *string, int minItemLen)
#define KILLLEADSPACES(y, x)
System-type variable type definitions.