[Solved] I am trying to write a program that stops with a specific string input [duplicate]


You can’t compare two string pointers with != or ==.
you need to use strcmp, for example:

while (strcmp(check,input) != 0)

strcmp compares the string pointed to, by str1 to the string pointed to by str2.

3

solved I am trying to write a program that stops with a specific string input [duplicate]