3 ms·
Linux uses a similar thing: functions that return pointers and that can fail typically return the negated error code cast directly into a pointer: http://lxr.fr
by dezgeg 10y ago
Linux uses a similar thing: functions that return pointers and that can fail typically return the negated error code cast directly into a pointer: http://lxr.free-electrons.com/source/include/linux/err.h#L23 http://lxr.free-electrons.com/source/include/linux/err.h#L23