The vast majority of libc functions return c_int for the return value, when setting errno. This utility function is for those cases.
Other cases can hand-roll the logic, or additional helpers can be added.
The vast majority of libc functions return `c_int` for the return value, when setting errno. This utility function is for those cases.
Other cases can hand-roll the logic, or additional helpers can be added.