so I first #define SENTINEL -1
and in a certain function, I set up an if statement
void blahblah(blah)
{
printf("Enter an integer (-1 to quit)");
scanf("%d", &value);
if (value == SENTINEL)
return;
}
but for some reason it's not terminating the program like I want it to?