logoalt Hacker News

WhyNotHugotoday at 5:24 PM2 repliesview on HN

Why does libc do this instead of simply returning that same negative number?


Replies

matheusmoreiratoday at 6:28 PM

Legacy. It's always been this way and it can't change without breaking everything.

rcxdudetoday at 5:31 PM

POSIX, basically. It was already a convention by the time linux/glibc implemented it.