On 16 July 2013 16:53, Glenn Fowler <[email protected]> wrote:
>
> On Sat, 13 Jul 2013 10:48:55 +0200 Lionel Cons wrote:
>> Does SFIO's sfgetd() have support for C99 printf("%a") format?
>
> both
>         sfputu()/sfgetu() for integers
> and
>         sfputd()/sfgetd() for floating point
> use sfio-specific encodings

Unfortunately that encoding predates IEEE754, i.e. there is no
nan/-nan, working infinite, subnormal numbers or negative zero. That
allows only for very very limited use.
>
> sfscanf() handles %a format via ast { strtof strtod strtold strntof strntod 
> strntold }
> all implemented by the libast private header src/lib/libast/sfio/sfstrtof.h

sfscanf() will do. Thanks

Lionel
_______________________________________________
ast-users mailing list
[email protected]
http://lists.research.att.com/mailman/listinfo/ast-users

Reply via email to