Why is std :: FILE in capital letters?

I was wondering why the types C and C ++ FILE are written in capital letters. Other types are written in lowercase.

Amend see Β§ 27.9.2 C ++ 11, table 134

+4
source share
1 answer

In very old C dialects, before there was any standardization, when the FILE type was invented, and before the typedef existed, this name was a macro:

#define FILE struct _iobuf 

The agreement was for macros to be named in all capital letters.

http://minnie.tuhs.org/cgi-bin/utree.pl?file=V7/usr/include/stdio.h

(the macros that were in lowercase were just optimized versions of the functions - many of them also existed as valid functions)

+12
source

Source: https://habr.com/ru/post/1383241/


All Articles