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
You can use strchr to get a pointer to the first occurrence and the subtract that (if not null) from the original char* to get the position.