Hacker News new | past | comments | ask | show | jobs | submit login

sprintf



Then main drawbacks of sprintf are that it doesn't allow to find the shortest decimal representation and that its output depends on the current locale, so you often need something like sprintf_l which isn't portable.


Why is it not portable?


Because only very few libc's support it. There should also be a locale independent _sprintf_c somewhen.




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

Search: