I'm new to C but I have experience in Java and Android. I have a problem in my for loop. It will never end and just go on and on.
char entered_string[50];
char *p_string = NULL;
gets( entered_string );
for( p_string = entered_string; p_string != '\0'; p_string++ ){
//....
}
I know that gets is unsafe, not recommended and deprecated but according to my specs I have to use it. I want to loop through each element by using pointers.