[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: 32 bit (un)signed int on every system?
From:       Burkhard Lehner <b_lehner () informatik ! uni-kl ! de>
Date:       1998-03-19 22:25:28
[Download RAW message or body]

                                               Kaiserslautern, 19.3.98
Hi, Developers!

On Thu, 19 Mar 1998, Burkhard Lehner (myself :-) ) wrote:

> What type can I use, defined on EVERY system, that is defined as a 32 bit
> singed / unsigned int? 
> 
> What doesn't work is:
> 
> long / unsigned long   : seems to be 64 bit on DEC alpha
> int / unsigned int     : can be 16 bit on some systems
> int32_t, u_int32_t     : isn't defined on many systems (e.g. SunOS)
> __u32                  : the only system I found was Linux :-)

I found the solution myself:

Qt defines the types Q_INT32 and Q_UINT32 in the file qglobal.h.

So, why use sys/types or something similar, when you can use Qt, that
should be running on EVERY system :-)

Bye,
   Burkhard

-----------------------------------------------------------------------
   "Manchmal glaube ich, der beste Beweis dafür, dass es anderswo im
Weltall intelligentes Leben gibt, ist der, dass noch niemand versucht
hat, Kontakt zu uns aufzunehmen."
(Aus "Calvin und Hobbes: Immer voll drauf" von Bill Watterson)

Burkhard Lehner, Trippstadter Str. 121 / App. 106, 67663 Kaiserslautern
Telefon : (0631) 10363
EMail   : b_lehner@informatik.uni-kl.de
Homepage: http://www.student.uni-kl.de/~blehner
-----------------------------------------------------------------------

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic