[gameprogrammer] Re: A Note on C Programming Style

On 5/6/05, Ryan Hanlon <ryanh@xxxxxxxxxx> wrote:
>=20
> One things I've seen in a few projects I've helped with, is that people
> who prefer to think of pointers as their own data type often do this:
>=20
> typedef char* char_p;
>=20
> Then they can do things like...
>=20
> char_p p, q, r;

One advantage to doing it this way, compared to just writing char* is
that indent won't "fix" it for you, if you typedef it. :)

Chris

--=20
E-Mail: Chris Nystrom <cnystrom@xxxxxxxxx>
Business: http://www.shaklee.net/austin
Blog: http://conversazione.blogspot.com/
AIM: nystromchris


---------------------
To unsubscribe go to http://gameprogrammer.com/mailinglist.html


Other related posts: