Wireshark-dev: Re: [Wireshark-dev] where guint is defined in FreeBSD
From: "Abhik Sarkar" <[email protected]>
Date: Thu, 3 Jan 2008 16:56:35 +0400
guint comes from glib (from glib/gtypes.h via glib.h>

On Jan 3, 2008 4:46 PM, Mayank Jain <[email protected]> wrote:
> Its recommended to use guint instead of u_int
> Don't use "uchar", "u_char", "ushort", "u_short", "uint", "u_int",
> "ulong", "u_long" or "boolean"; they aren't defined on all platforms.
> If you want an 8-bit unsigned quantity, use "guint8"; if you want an
> 8-bit character value with the 8th bit not interpreted as a sign bit,
> use "guchar"; if you want a 16-bit unsigned quantity, use "guint16";
> if you want a 32-bit unsigned quantity, use "guint32"; and if you want
> an "int-sized" unsigned quantity, use "guint"; if you want a boolean,
> use "gboolean".  Use "%d", "%u", "%x", and "%o" to print those types;
> don't use "%ld", "%lu", "%lx", or "%lo", as longs are 64 bits long on
> many platforms, but "guint32" is 32 bits long.
> http://anonsvn.wireshark.org/wireshark/trunk/doc/README.developer
> I am not able to find guint in FreeBSD. in types.h Can anybody tell me
> where can I find this.
> --
> ----------
> Thanks
> Regards
> Mayank Jain
> http://mayankjain.110mb.com/
> +91-9818390836
> _______________________________________________
> Wireshark-dev mailing list
> [email protected]
> http://www.wireshark.org/mailman/listinfo/wireshark-dev