Skip to main content
6 events
when toggle format what by license comment
May 2, 2016 at 7:54 history edited Toby Speight CC BY-SA 3.0
Say what I actually got wrong, instead of trying to save face...
May 2, 2016 at 7:51 comment added Toby Speight @chux, thanks for the correction. And you're right about unsigned char - I mistakenly thought that CHAR_BIT could be 7, (giving 5 chars in 36-bit hardware), but it actually must be 8 or more. I did originally use char, forgetting it needed to briefly represent values more than 99. That's a definite bug, and I did fix that before posting.
May 2, 2016 at 7:44 history edited Toby Speight CC BY-SA 3.0
Correction - we can't safely add to a null pointer. Thanks to chux for pointing that out.
Apr 29, 2016 at 17:49 comment added chux How is this true: "unsigned char wasn't portable enough to represent up to 198"? If uint8_t works, certainly unsigned char works.
Apr 29, 2016 at 17:47 comment added chux digit *end = d + digits; should occur after if (!d) {...}
Apr 29, 2016 at 14:21 history answered Toby Speight CC BY-SA 3.0