@spun_off glibc?
@spun_off Yes but "h" and "hh" are defined for "d", "x", "u", "i", and "o" too, for no apparent reason.
-
-
@RichFelker @spun_off You cannot use "d" for unsigned char if char is not guaranteed to be strictly smaller than int. And it isn't in C std. -
@ch3root@RichFelker You cannot use "d" if you target architectures that have this property, that's right. -
@ch3root@RichFelker The choice is between sending int arguments to %u on 999‰ archs or sending unsigned int args to %d on the remaining <1‰ -
@spun_off
@RichFelker Not sure what you mean, "hh" is there to solve the problem. -
@ch3root@RichFelker I am coming to the conclusion that "hhu" should be taken to mean “take an int argument, print as unsigned char”. Rich? -
@ch3root@RichFelker (again when I say “int” I mean on C8S16I32LP64 or C8S16ILP32)
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.