what my code does is it waits for the user to type in "led" and performs the blink function. what i am trying to do is introduce the letter 'p' as a command to stop the blinking. what happens is that blink is only executed once.
if (!(strcmp(userinput, led))){ //condition 1
for(howlong = 0; howlong++ < 0xFF; howlong++){ //condition 2
blink();
if (getch() == 'p')
break;
}
}