Skip to main content

Timeline for answer to How to use format specifier within switch in C by Jabberwocky

Current License: CC BY-SA 4.0

Post Revisions

3 events
when toggle format what by license comment
Jul 5, 2018 at 21:55 comment added user3629249 this will cause some compilers, like gcc to output a warning message about the security risk of using a variable pointer for the format string, rather than the actual format literal.
Jul 5, 2018 at 8:53 comment added Toby Speight You probably want to assign something to text in the default case (or omit default: and just initialize text at the declaration).
Jul 5, 2018 at 7:51 history answered Jabberwocky CC BY-SA 4.0