Checking function return values

A lot of you are guilty of not checking return values from API function calls. I’ll bet you have a good excuse, like “it’s a lot of extra typing for no reason”, or “that function should never return an error code”. I check return values religiously, use asserts liberally, and never assume that the implementation …

Continue reading ‘Checking function return values’ »