wireshark/epan/g_ascii_strtoull.h
Guy Harris dfad2b94f5 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
2004-09-03 18:14:00 +00:00

16 lines
325 B
C

/*
* $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