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

functions don't conform to specs, the API and library as a whole should conform to the spec. It's perfectly valid to have one function that supports strings and another function that supports binary data.


Did they have such a pair of functions?


They do now, and the first one is still using strlen(). Does the existence of the second function mean it's now ok for the first to use strlen()? You can still crash the program if you send binary data to the string function instead of the binary function..


So essentially it's an issue with C being weakly typed?




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

Search: