#include int findChar(char* str, char targetChar) { for(int i = 0; strcmp(&str[i], "\0") == 0; i++) { if(str[i] == targetChar) return i; } }