4 ms·
Looks interesting and fun, but in no instance of any C compiler I've come across is the "classic example" of "hello, world" using `fprintf(stderr, ...)` To eac
by michaelcampbell 5mo ago
Looks interesting and fun, but in no instance of any C compiler I've come across is the "classic example" of "hello, world" using `fprintf(stderr, ...)`
To each their own I guess.
- apitman 5mo agoGive io buffering an inch and it will take a mile
- 1718627440 5mo agoI give you `if (0 > fdprintf (STDERR_FILENO, ...))` instead. But on a serious matter, it's a good thing to tell a beginner that diagnostics belong on stderr, not stdout.
- NetMageSCW 5mo agoThe real classic is from The C Programming Language (where I saw it) and is: main( ) { printf("hello, world"); }