I am trying to create a do-while loop that scans two variables but when I type "exit", I want the function to go out the loop. This is my code:
char var1;
char var2;
do {
scanf("%s %s", &var1, &var2);
} while ("Some argument that I don't know")
I tried (strcmp(&var1,'quit') != 0)
and things like that as argument but it doesn't work.