Re:Formatting Text in C++: The Old and the New Ways
by cozzyd on Saturday September 16, 2023 @09:43PM
(#37540655)
asprintf is often a better choice if you're heap allocating anyway. For a static or stack buffer, obviously snprintf, unless you know the maximum possible length won't exceed (which you often do....).
[ Parent
| on HN ]
There are no comments on this comment yet.