What is the right way to typedef a type and the same type’s pointer? Here is what I mean. Should I do this:
typedef unsigned int delay;
typedef unsigned int * delayp;
Or should I do this:
typedef unsigned int delay;
typedef delay * delayp;
Or perhaps I should not typedef pointer at all and just use delay * instead of delayp everywhere I find necessary?
Thanks, Boda Cydo.
The right way is not to do it. Hiding the fact that something is a pointer is commonly seen as bad style.