Finds the first "argument" in a string; either a set of space terminated characters, or a fully quoted string. After the argument is found, whitespace is read until the next portion of the string is reached. If nothing remains, -1 is returned. Otherwise, the index to the first character is returned.
int BreakString(const char source, char arg, int argLen)
Source input string.
Stores argument read from string.
Maximum length of argument buffer.
Index to next piece of string, or -1 if none.