Importing inttypes methods from FreeBSD

Craig Howland
Wed Jul 19 14:13:00 GMT 2017

On 07/19/2017 08:28 AM, Corinna Vinschen wrote:
> What you really want is to define a static function which takes the
> reent pointer and strtoimax_l/strtoimax only calling that, like this:
> --- snip ---
> static intmax_t
> _strtoimax_r(struct _reent *rptr, const char * __restrict nptr,
> 	     char ** __restrict endptr, int base, locale_t loc)
      Why static?  In general, the reentrant forms are included in the header 
files so that they can be called directly if an application so desires.

More information about the Newlib mailing list