3 ms·
The _t suffix is also reserved by posix. (And by the C standard if the name starts with int or unit.) I agree with just using struct foo, as does the Linux sty
by ynfnehf 5y ago
The _t suffix is also reserved by posix. (And by the C standard if the name starts with int or unit.)
I agree with just using struct foo, as does the Linux style guide.
(Edit: I just noticed the page mentions this, but it is perhaps useful to reiterate.)
- mlex 5y agoSomewhat related; I feel like C reserves a lot of names that though different standards, is there a good list of all of those so I know to avoid them? (e.g. underscore prefixes)
- zabzonk 5y agoThis part of the GCC docs covers all of them, AFAIK: https://www.gnu.org/software/libc/manual/html_node/Reserved-Names.html https://www.gnu.org/software/libc/manual/html_node/Reserved-...