I never had to print 128 or 256 bits ints on a screen/log
Le 29 avr. 2015 1:32 AM, "Cathey, Jim" <[email protected]> a écrit :

> >For this case I generally cast the param to the biggest possible type.
> >printf("llu", (uint64_t) val);
>
> That's nearly as parochial as what you are changing from.  C doesn't
> have a printf-name to _size_ mapping.  What if my C compiler has a
> 128-bit scalar type, and _that_ is long-long?  The best thing you should
> do is use names, no sizes:
>
> printf("%llu", (unsigned long long) val);
>
> _That_ had better match!
>
> -- Jim
>
>
>
_______________________________________________
busybox mailing list
[email protected]
http://lists.busybox.net/mailman/listinfo/busybox

Reply via email to