Login
You're viewing the functional.cafe public feed.
  • Nov 5, 2026, 1:05 PM

    @cadey Also, this one is fun because it's not memory related at all, a pure logic bug, but still so uniquely C that I can't see it happen in any other language. If only we had a way to report errors other than returning some garbage sentinel value!

    💬 1🔄 0⭐ 11

Replies

  • Nov 5, 2026, 3:47 PM

    @muvlon @cadey well, we Did -- returning NULL kept crashing badly behaved programs. So in an effort to "make musl usable", they changed it in 2012. Instead of telling programmers to Fix Their Shit.

    💬 0🔄 0⭐ 2