I need an inString function that returns a 0 or 1 to use in my IF statements. I do not think the attached code is correct, and I would love it if I could tap someone's brain to get a working solution.
I searched on here already and could not find anything.
I would like to make this so that I can search for any sized string in the first string.
static int inString(const char* testvalue, char token)
// resolve token in string
for (i = 0; i < strlen(testvalue); i++)
if (testvalue[i] == token)