Is there a function in c that will return the index of a char in a char array?
For example something like:
char values[] = \"0123456789ABCDEFGHIJKLMN
int index = strchr(values,find)-values;
Note, that if there's no find found, then strchr returns NULL, so index will be negative.
find
strchr
NULL