3 ms·
Hilariously, the C standard requires this. C11 7.21.1.3: "The macros are [...] stderr, stdin, stdout which are expressions of type ‘‘pointer to FILE’’ that poi
by jmgao 7y ago
Hilariously, the C standard requires this.
C11 7.21.1.3:
"The macros are [...] stderr, stdin, stdout
which are expressions of type ‘‘pointer to FILE’’ that point to the FILE objects associated, respectively, with the standard error, input, and output streams."
- ainar-g 7y agoYou probably meant to point to 7.21.1.3, not 7.21.3. I had to look it up myself, and sure enough, that's true[1]. The C Standard is a magical document indeed. [1] http://www.open-std.org/jtc1/sc22/wg14/www/docs/n1570.pdf http://www.open-std.org/jtc1/sc22/wg14/www/docs/n1570.pdf
- jmgao 7y agoOops, yes, thanks!