apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jim Jagielski <...@jaguNET.com>
Subject apr_atoi64
Date Mon, 19 Aug 2002 21:16:02 GMT
Do we really want apr_atoi64 to determine the base automagically??
I don't think we do... I think we want to have it emulate atol
which means:

   APR_DECLARE(apr_int64_t) apr_atoi64(const char *buf)
   {
-      return apr_strtoi64(buf, NULL, 0);
+      return apr_strtoi64(buf, NULL, 10);
   }

Comments??
-- 
===========================================================================
   Jim Jagielski   [|]   jim@jaguNET.com   [|]   http://www.jaguNET.com/
      "A society that will trade a little liberty for a little order
             will lose both and deserve neither" - T.Jefferson

Mime
View raw message