eyfugq
Last Updated: February 25, 2016
·
1.079K
· mlafeldt
2190d7a468f51fa3be5eabfc9397a28b

Normalize return code to 0 or 1 in C

c

In C, a more idiomatic way to say

return errors ? 1 : 0

is

return !!errors

But please do not encrypt your return codes further.

Say Thanks
Respond