Wireshark-dev: [Wireshark-dev] where guint is defined in FreeBSD
From: Mayank Jain <mayank@xxxxxxxxxxxxx>
Date: Thu, 03 Jan 2008 18:16:19 +0530
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