Even if you're right, you said you were guessing, meaning you'd have to look it up.
To add insult to injury, snprintf does it differently.
To add insult to injury, snprintf does it differently.
I also refreshed myself on snprintf, and as un-ergonomic interfaces go, they did a good job with what they had... But I will gladly take my golang multiple return values, now that I have them.
So, only when the returned value is non-negative and less than ‘n’, the string has been completely written as expected.