4 ms·
Indeed, bool (or _Bool) was added in C99, hence my pointing out it not being used… it's not in C89. It matters because the return value sense is different; an
by eqvinox 3y ago
Indeed, bool (or _Bool) was added in C99, hence my pointing out it not being used… it's not in C89.
It matters because the return value sense is different; an "int" return for a status-ish thing in a modern library generally means 0 for success, nonzero for error codes. "bool" is the other way around, 0 for failure-y. In this case it's a status retrieval function so it's pretty clear that it's intended as a boolean but it'd still be better to actually make it bool.
- coumbaya 3y agoAh, I get it now, thx.