Join Nostr
2026-10-17 21:19:03 UTC

Jan Schaumann on Nostr: This is the first year that a lot of students rely on errno being set instead of a ...

This is the first year that a lot of students rely on errno being set instead of a library function's return value:

errno = 0;
func()
if (errno) {
error handling here
}

instead of

if ((n = func()) < 0) {
error handling here
}

What's up with that? Is AI somehow defaulting to errno checking instead of return values? Where is this trend coming from?