This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
Re: missing methods in inttypes.h
- From: Corinna Vinschen <vinschen at redhat dot com>
- To: newlib at sourceware dot org
- Date: Tue, 30 Jul 2013 11:13:11 +0200
- Subject: Re: missing methods in inttypes.h
- References: <51F678CC dot 2070901 at oarcorp dot com>
- Reply-to: newlib at sourceware dot org
On Jul 29 09:14, Joel Sherrill wrote:
> Hi
>
> I am curious where the missing methods from inttypes.h
> should go (eventually) in the source tree?
>
> intmax_t imaxabs(intmax_t);
> imaxdiv_t imaxdiv(intmax_t, intmax_t);
> intmax_t strtoimax(const char *restrict, char **restrict, int);
> uintmax_t strtoumax(const char *restrict, char **restrict, int);
> intmax_t wcstoimax(const wchar_t *restrict, wchar_t **restrict, int);
> uintmax_t wcstoumax(const wchar_t *restrict, wchar_t **restrict, int);
For Cygwin, they are just aliases of the respective method using the
biggest available datatype:
imaxabs = llabs
imaxdiv = lldiv
strtoimax = strtoll
strtoumax = strtoull
wcstoimax = wcstoll
wcstoumax = wcstoull
In theory, every target can handle it that way without the need
to implement these functions explicitely.
Corinna
--
Corinna Vinschen
Cygwin Maintainer
Red Hat