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

C doesn't have a string data type, let alone a locale-aware one. No, the Microsoft LPCWSTR madness doesn't count.


because C doesn't make types aware, but functions?

https://en.cppreference.com/w/c/string/multibyte


Yes. And the C type system isn't rich enough to represent "do not pass this type of string into this function".




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

Search: