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
What about strpos?
#include int index; ... index = strpos(values, find);
Note that strpos expects a zero-terminated string, which means you should add a '\0' at the end. If you can't do that, you're left with a manual loop and search.