2 ms·
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.
by WalterBright 2y ago
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.
- GauntletWizard 2y agoYes, it's the most obnoxious behavior I could think up - Which meant I was sure it was correct, but not the kind of sure I'd want to rely on. 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.