Remember how in C failable functions would return a number, and the caller was responsible for checking if that number is non-zero (or zero. Depends on the function) and if so, consider that a failure and handle it - which would usually mean returning non-zero (or zero) itself?
View all comments
Show parent comment
1
u/somebodddy Sep 13 '23
Remember how in C failable functions would return a number, and the caller was responsible for checking if that number is non-zero (or zero. Depends on the function) and if so, consider that a failure and handle it - which would usually mean returning non-zero (or zero) itself?