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<
36 /* b[] and s[] are declared as automatic, not static, variables
37 ** because strqtok() will change them.
38 ** They must be defined together; and, b[] must be defined first
39 ** (because they're copied onto the top-down stack).
41 char b[] = "Bogus token ";
42 char s[] = " This , \" is only \"a short "
43 "quoting\"test , honoring blanks"
44 ", commas\", and (4) empty \"\"\"\"\"\"\"\" \"strings, EOT ";
45 char* t = strqtok (s, " ,");
49 t = strqtok (NULL, " ,");