This is the first year that a lot of students rely on errno being set instead of...
Jan Schaumann @jschauma@mstdn.social
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?