Is there a C library function that will return the index of a character in a string?
So far, all I\'ve found are functions like strstr that will return the found cha
You can write
s="bvbrburbhlkvp"; int index=strstr(&s,"h")-&s;
to find the index of 'h' in the given garble.
'h'