Re: data sizes in linux



On Wed, Aug 30, 2000 at 09:18:02PM -0400, Liam Quin wrote:
> 
> On Thu, Aug 31, 2000 at 12:07:52PM +1100, Nathan Hurst wrote:
> > On Thu, 31 Aug 2000, Jack M. wrote:
> > > What are the data sizes in linux?. Like how many bits ar in char, int,..
> > 
> > /usr/include/bits/types.h
> 
> This is a function not just of linux but also the hardware --
> you will in general get different results on an Alpha, a SPARC and
> a pentium system.
> 
> You should therefore use sizeof() rather than hard-wiring the sizes
> as constants.

and look at any standard ./configure script (eg: glib)

PGP signature



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]