c - Naming scheme for typedefs -
I am working on a library which is used for mass production
typedef struct foo_bar_s {...} foo_bar_t; This is a bad idea to use the _t suffix, because it is a POSIX reserved namespace _s suffix for Structs is also pretty useless. So I thought I could turn it into
typingfuffefu_bar {...} foo_bar; Or if the configuration name is not required
typedef struct {...} foo_bar; However, I can not separate typingfaces from regular symbols (variables, etc.). Is this really such a big thing and should I use a different appropriate naming scheme for typefaces? Or does it make any difference?
I'm not really so sure what you think? Apart from this, what are the recommendations you have for typefay naming schemes? However, "_t" is reserved, it is not very likely that you will face a problem.
However, this conference is the remainder of the earlier versions of C, where this syntax was required for the name of the Stacket, and so nowadays you can just write something (except typewf and typepip names):
Structure name_off_struct { Type 1 member1; Type 2 member 2; // ... type n member n; }; And yes, you can use single row comments ("// ...") in the current standard of C.
Comments
Post a Comment