Do you prefer to see something like t_byte*
(with typedef unsigned char t_byte
) or unsigned char*
in code?
I\'m leaning towards
I prefer to use standard types, unsigned char, uint8_t, etc., so any programmer looking at the source does not have to refer back to headers to grok the code. The more typedefs you use the more time it takes for others to get to know your typing conventions. For structures, absolutely use typedefs, but for primitives use them sparingly.