News for hackers. Stuff that matters.
Re:Everything I wish I knew when learning C by matthewaveryusa on Monday November 28, 2022 @09:28AM (#33773983)
C spec:

>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.

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.
Re:Everything I wish I knew when learning C by layer8 on Monday November 28, 2022 @09:42AM (#33774160)
Not all reserved names are reserved for all purposes. _t is reserved only for type names (typedefs), whereas _Atomic and _Bool are keywords.