I am trying to debug putchar with xcode but I can't see the characters in the console window?
Any ideas on this one?
I am trying to debug putchar with xcode but I can't see the characters in the console window?
Any ideas on this one?
My psychic debugger suggests that you flush stdout before expecting any output in the console window:
Unless the character being printed is guaranteed to be '\n', of course. That character forces a flush.Code:putchar(c); fflush(stdout);
My best code is written with the delete key.