522d01d01c053750ee5dd07c31ec41916b924475 max Mon Apr 4 11:45:25 2016 -0700 adding comment after email from Chris, no redmine diff --git src/lib/common.c src/lib/common.c index 05a3c33..4191577 100644 --- src/lib/common.c +++ src/lib/common.c @@ -1919,31 +1919,31 @@ break; if (c == 0) break; ++count; } return count; } /* int chopString(in, sep, outArray, outSize); */ /* This chops up the input string (cannabilizing it) * into an array of zero terminated strings in * outArray. It returns the number of strings. * If you pass in NULL for outArray, it will just * return the number of strings that it *would* - * chop. + * chop. This splits the string. * GOTCHA: since multiple separators are skipped * and treated as one, it is impossible to parse * a list with an empty string. * e.g. cat\t\tdog returns only cat and dog but no empty string */ int chopString(char *in, char *sep, char *outArray[], int outSize) { int recordCount = 0; for (;;) { if (outArray != NULL && recordCount >= outSize) break; /* Skip initial separators. */ in += strspn(in, sep); if (*in == 0)