↓ Skip to main content

“the return value alone isn’t enough to determine if an error occurred”

sebsitesebsite.pw ↗

Fifty years in and C still cannot reliably tell you whether a number parsed. Whether errno gets set depends on math_errhandling, glibc and musl disagree, and bad input is not even an error. This is the foundation everything else is built on. Nobody fixes it because everybody has learned to work around it.