Comment on The Type of SprintfparentComments−anonymousiam2yCan 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.−jznsis2yYes, 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−anonymousiam2yOkay, got it. So you are agreeing with me that the author should have used printf instead of sprintf.Thanks!−jznsis2yNo
Comments
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.
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
Okay, got it. So you are agreeing with me that the author should have used printf instead of sprintf.
Thanks!
No