I've been working on a project lately and for it I need to be able to read from a string character by character. What I want the program to do is to go through the string and based off of what characters it'll have, it'll do something else, like so:
char string[5] = {"hello"};
// if the string has an e in it:
printf("string has an e in it");
// if it has an h in it:
printf("string has an h in it");
I would try to give a more realistic example but everytime i try on my own system it never works.