diff options
author | Guy Harris <guy@alum.mit.edu> | 2004-09-03 18:14:00 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2004-09-03 18:14:00 +0000 |
commit | dfad2b94f5fa40db86bd11e475c310751efafe69 (patch) | |
tree | 52e7356882f6648b61bf937b258a6ebcffc54e65 /epan/g_ascii_strtoull.h | |
parent | 4e3b6fb31568d2a767c4f977b8954e124caec30c (diff) | |
download | wireshark-dfad2b94f5fa40db86bd11e475c310751efafe69.tar.gz |
Some UN*Xes don't have any "strtou*" routine to convert a string to a
64-bit integer; use "g_ascii_strtoull()", and, in the configure script,
check whether it's available in GLib (it's not in GLib 1.2[.x]) and, if
not, supply the GLib 2.4.5 version of the routine.
For G_MAXUINT32 and G_MAXUINT64, put a "U" at the end of the constant to
explicitly flag it as unsigned.
svn path=/trunk/; revision=11889
Diffstat (limited to 'epan/g_ascii_strtoull.h')
-rw-r--r-- | epan/g_ascii_strtoull.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/epan/g_ascii_strtoull.h b/epan/g_ascii_strtoull.h new file mode 100644 index 0000000000..dc24df0936 --- /dev/null +++ b/epan/g_ascii_strtoull.h @@ -0,0 +1,15 @@ +/* + * $Id$ + * + * "g_ascii_strtoull()" extracted from GLib 2.4.5, for use with GLibs + * that don't have it (e.g., GLib 1.2[.x]). + */ + +#ifndef __ETHEREAL_G_ASCII_STRTOULL_H__ +#define __ETHEREAL_G_ASCII_STRTOULL_H__ + +extern guint64 g_ascii_strtoull (const gchar *nptr, + gchar **endptr, + guint base); + +#endif |