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
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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:
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)