Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Yes, 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.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: