That's what got you? C functions returning error flags (with zero meaning no error) isn't exactly new.