If you run your C program from a dos command line, do you get all output?