pub fn errno(rc: anytype) E
Get the errno if rc is -1 and SUCCESS if rc is not -1.
rc
76 77 78
pub fn errno(rc: anytype) E { return if (rc == -1) @fromBackingInt(@intCast(_errno().*)) else .SUCCESS; }
Get the errno if rc is -1 and SUCCESS if rc is not -1.