Re:C Strings and my slow descent to madness
by up2isomorphism on Friday April 07, 2023 @02:11AM
(#35478626)
Dude, your last one is not even the correct way of calling snprintf, what the hell are you talking about?
[ Parent
| on HN ]
Re:C Strings and my slow descent to madness
by nneonneo on Friday April 07, 2023 @09:58AM
(#35481611)
I mean, none of these are correct. But they will all compile, often with no warnings at all. The format string doesn’t need to be a literal string: this is useful for situations like localization.
Re:C Strings and my slow descent to madness
by KyeRussell on Friday April 07, 2023 @10:52AM
(#35482164)
No surprise that this completely unjustified vitriolic reaction comes from someone arguing about C.