News for hackers. Stuff that matters.
Re:Truthiness in C by stefanos82 on Friday September 15, 2023 @02:54PM (#37527618)
If I'm not mistaken, the `(bool)` is unnecessary due to how implicit conversion works: `In a return statement, the value of the operand of return is converted to an object having the return type of the function` [1] ...unless I understood it incorrectly :/

[1] https://en.cppreference.com/w/c/language/conversion

Re:Truthiness in C by swinglock on Friday September 15, 2023 @03:08PM (#37527792)
That's correct.