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