4 ms·
Cool tricks! About the debugging macros: printf prints messages to stdout, not stderr. You want to use fprintf instead: fprintf(stderr ,"error message"); T
by skaevola 13y ago
Cool tricks!
About the debugging macros: printf prints messages to stdout, not stderr. You want to use fprintf instead:
fprintf(stderr ,"error message");
This has the advantage of being unbuffered, and still printing to the console even if stdout has been directed to a file.
- intull 13y agoHaha, I started with talking about the standard buffers and have completely missed using them! Thanks for reminding this!