News for hackers. Stuff that matters.
Re:My personal C coding style as of late 2023 by JonChesterfield on Monday October 09, 2023 @07:17AM (#37819159)
u16 etc show up a lot and are unlikely to confuse programmers.

Where it does go to pieces is when two different programs both define u16, use them in header files, and then a third program tries to include both those header files at the same time. The big advantage of <stdint.h> is avoiding that failure mode.

The namespaced library type equivalent is something like libname_u32, at which point it's tempting to write uint32_t instead of the libname:: or libname_ prefix.

There are no comments on this comment yet.