[c] How do I find the index of a character within a string in C?