3 ** 2014-04-21, Paul Foerster
4 ** 2014-05-20, Greg King
6 ** This program tests that strqtok() correctly will parse strings
7 ** with quotation marks in them. It should show this list of tokens
8 ** from the test strings:
15 ** >test , honoring blanks, commas<
35 /* b[] and s[] are declared as automatic, not static, variables
36 ** because strqtok() will change them.
37 ** They must be defined together; and, b[] must be defined first
38 ** (because they're copied onto the top-down stack).
40 char b[] = "Bogus token ";
41 char s[] = " This , \" is only \"a short "
42 "quoting\"test , honoring blanks"
43 ", commas\", and (4) empty \"\"\"\"\"\"\"\" \"strings, EOT ";
44 char *t = strqtok(s, " ,");
48 t = strqtok(NULL, " ,");