According to this stack overflow answer, the "_t" postfix on type names is reserved in C. When using typedef
to create a new opaque type, I'm used to having some sort of indication in the name that this is a type. Normally I would go with something like hashmap_t
but now I need something else.
Is there any standard naming scheme for types in C? In other languages, using CapsCase like Hashmap
is common, but a lot of C code I see doesn't use upper case at all. CapsCase works fairly nicely with a library prefix too, like XYHashmap
.
So is there a common rule or standard for naming types in C?