[SlugLUG] Question on C

cerise at armory.com cerise at armory.com
Tue Oct 10 19:53:22 PDT 2006


On Tue, Oct 10, 2006 at 06:26:54PM -0700, Suraj N. Kurapati wrote:
> 
> Aww, but I really like C99. :-)
> 
> Especially the ultra-portable storage types in <stdint.h>, such as
> uint8_t which is _always_ an unsigned integer of 8-bits length,
> regardless of what obscure architecture I'm currently using. Try
> achieving such portability with good old 'unsigned char'. ;-)

I think that's what autoconf is for.  ; ) In principle, it can be done 
using just the things in limits.h, though people rarely bother.

It's not that C99 is all bad.  It's nice to have types whose details you can 
rely upon.  long longs are good things too.  It's all the other crap like 
variable length arrays that bug the hell out of me.

-Phil/CERisE


More information about the Sluglug mailing list