You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@apr.apache.org by Jim Jagielski <ji...@jaguNET.com> on 2002/08/19 23:16:02 UTC
apr_atoi64
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
Re: apr_atoi64
Posted by "William A. Rowe, Jr." <wr...@rowe-clan.net>.
++1.
Bill
At 04:16 PM 8/19/2002, Jim Jagielski wrote:
>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