3 ms·
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 an
by ambrice 13y ago
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.
- leoc 13y agoDid they have such a pair of functions?
- ambrice 13y agoThey 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..
- mercurial 13y agoSo essentially it's an issue with C being weakly typed?