Skip to main content

Timeline for Bare-Bones implementation of printf

Current License: CC BY-SA 4.0

4 events
when toggle format what by license comment
Jul 5, 2018 at 7:05 history edited Toby Speight CC BY-SA 4.0
printf("%s", (void*) NULL) is UB, so doesn't need testing. Thanks @chux.
Jul 5, 2018 at 7:04 comment added Toby Speight Yes, that is UB, so doesn't need a test case. I confess I was thinking ahead to an implementation of %p - it's useful to have a distinct representation for null pointers there. I'll remove that recommendation.
Jul 4, 2018 at 18:51 comment added chux "Test cases ... null pointers with the %s specifier": Hmmm. As printf("%s", (void*) NULL) is UB, testing myprintf() would seem optional, though perhaps informative, as any result would match UB.
Jul 4, 2018 at 17:42 history answered Toby Speight CC BY-SA 4.0