Re:The Type of Sprintf
by anonymousiam on Tuesday May 14, 2024 @10:59PM
(#40362632)
Can you elaborate please? Your description does not match what I see. My understanding is that this is a way to more strongly type function arguments, as an alternative to va_arg.
[ Parent
| on HN ]
Yes, but the final result is out_str, not a forward to console, isn't it?
Either way, the format string discussion for the printf familiy of functions is very similar between them
Re:The Type of Sprintf
by anonymousiam on Tuesday May 14, 2024 @11:46PM
(#40362896)
Okay, got it. So you are agreeing with me that the author should have used printf instead of sprintf.
Thanks!