]> git.ipfire.org Git - thirdparty/squid.git/blobdiff - lib/util.c
Author: wessels & Christos Tsantilas
[thirdparty/squid.git] / lib / util.c
index a4b35ede210616d8301c4890065ce8b453793063..953cf9db3345a31a202ce29249ee8e7ee282fbfa 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: util.c,v 1.95 2007/04/06 12:15:51 serassio Exp $
+ * $Id: util.c,v 1.96 2007/08/13 17:20:50 hno Exp $
  *
  * DEBUG: 
  * AUTHOR: Harvest Derived
@@ -919,6 +919,15 @@ xitoa(int num)
     return buf;
 }
 
+/* int64_t to string */
+const char *
+xint64toa(int64_t num)
+{
+    static char buf[24];       /* 2^64 = 18446744073709551616 */
+    snprintf(buf, sizeof(buf), "%"PRId64, num);
+    return buf;
+}
+
 /* A default failure notifier when the main program hasn't installed any */
 void
 default_failure_notify(const char *message)