Nothing jumps out at me as being wrong in your code, but I do have some stylistic things and best practices you might want to consider...
OK, enough of my opinions.
So the only real question I have is, are you sure that block of code is being reached? I assume you're seeing the printouts to the console, but I just thought I would ask.
Update: I reread the question and saw that the prints are showing up on stdout. I'm out of ideas...
In reply to Re: printf in if-statement
by lostjimmy
in thread printf in if-statement
by Utrecht
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |