Hacker News new | ask | show | jobs
by ynfnehf 1854 days 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.)

1 comments

Somewhat 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)
This part of the GCC docs covers all of them, AFAIK:

https://www.gnu.org/software/libc/manual/html_node/Reserved-...