strtoll, strtoull
J. Johnston
jjohnstn@cygnus.com
Mon Oct 1 11:06:00 GMT 2001
Charles Wilson wrote:
>
> Okay to apply?
>
> --Chuck
>
After some minor tweaks, patch has been checked in.
-- Jeff J.
> Charles Wilson wrote:
>
> > Recently, patches were accepted to implement long long and unsigned long
> > long functionality for the scanf family of functions. This was done
> > using new private functions __strtoull_r and __strtoll_r. However, this
> > functionality was not exported.
> >
> > So, I've renamed __strtoull_r and __strtoll_r to _strtoull_r and
> > _strtoll_r (following the pattern of _strtod_r), as well as implemented
> > new functions strtoull and strtoll. This involves the attached patch as
> > well as two new files: newlib/libc/stdlib/strtoull.c and
> > newlib/libc/stdlib/strtoll.c. All four functions are now declared in
> > stdlib.h.
> >
> > --Chuck
> >
> >
> > ------------------------------------------------------------------------
> >
> > 2001-09-24 Charles Wilson <cwilson@ece.gatech.edu>
> >
> > * libc/include/stdlib.h: add declarations for
> > _strtoull_r, _strtoll_r, strtoull, and strtoll.
> > * libc/stdio/local.h: remove declarations of
> > __strtoull_r and __strtoll_r.
> > * libc/stdio/vfscanf.c(__svfscanf_r): call
> > _strtoull_r instead of __strtoull_r. Ditto
> > _strtoll_r vs. __strtoll_r.
> > * libc/stdlib/Makefile.am: add new files to
> > .c list and .def list
> > * libc/stdlib/Makefile.in: regenerate
> > * libc/stdlib/strtoll_r.c: rename __strtoll_r
> > as _strtoll_r
> > * libc/stdlib/strtoull_r.c: rename __strtoull_r
> > as _strtoull_r
> > * libc/stdlib/strtoull.c: new file
> > * libc/stdlib/strtoll.c: new file
More information about the Newlib
mailing list