I was wondering why C's and C++'s FILE type is spelled with capital letters. Other types are spelled with lower case letters.
Edit see § 27.9.2 of C++11, table 134
In very old dialects of C, before there was any of standardization, when the FILE type was invented, and before typedef existed, that name was a macro:
#define FILE struct _iobuf
The convention was to have macros named in all uppercase.
http://minnie.tuhs.org/cgi-bin/utree.pl?file=V7/usr/include/stdio.h
(the macros that were in lowercase were simply optimized versions of functions - many of them also existed as proper functions)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With