On Mon, 15 Jan 2001, Guy Harris wrote:
> Does the resulting "config.h" file #define "u_int8_t", "u_int16_t", or
> "u_int32_t"?

Yes, they are defined as u_char, u_short and u_int respectively.
HP-UX include files define u_char, u_short and u_int as:

   typedef unsigned char        u_char;
   typedef unsigned short       u_short;

and, finally:

   typedef unsigned int         u_int;

At this moment we can obtain the size of these three types
using this small program:

   #include <stdio.h>

   void main()
   {
      printf("unsigned char size is %d bytes\n", sizeof(unsigned char));
      printf("unsigned short size is %d bytes\n", sizeof(unsigned short));
      printf("unsigned int size is %d bytes\n", sizeof(unsigned int));
   }

The output of this program (after compiling using `cc -Aa testsize.c' is

   unsigned char size is 1 bytes
   unsigned short size is 2 bytes
   unsigned int size is 4 bytes

Hope this helps and, again, thanks a lot for help me building these
binaries!

Igor.

-- 
Igor Sobrado, UK34436 - [EMAIL PROTECTED]

-
This is the TCPDUMP workers list. It is archived at
http://www.tcpdump.org/lists/workers/index.html
To unsubscribe use mailto:[EMAIL PROTECTED]?body=unsubscribe

Reply via email to