Re:Everything I wish I knew when learning C
by hddqsb on Monday November 28, 2022 @09:41AM
(#33774137)
The standard reserves several classes of identifiers, "_t" suffix is just one of several rules. Another rule is "All identifiers that begin with an underscore followed by a capital letter or by another underscore" (I should also mention "All external identifiers that begin with an underscore").
Re:Everything I wish I knew when learning C
by AstralStorm on Monday November 28, 2022 @09:37AM
(#33774086)
That only because bool was usually an old alias to int.. It's defined as alias to _Bool in stdbool.h, highly recommended.
>That shouldn't be recommended, because names ending with "_t" are reserved.
Also C spec naming new things:
>_Atomic _Bool
I'm glad to see the C folks have a sense of humor.