I\'m trying to split a string into tokens but somewhat recursively. I am trying to parse:
\"content=0&website=Google\"
so that I have a
Here is a solution that seems to work:
char *contents = "content=0&website=Google"; char arg[100] = {0}; char value[100] = {0}; sscanf(contents, "%[^&]&%s", arg, value); printf("%s\n%s\n", arg, value);