News for hackers. Stuff that matters.
Re:Let's Destroy C by shakna on Thursday January 30, 2020 @10:56AM (#22192263)
> The value -1 is definitely true

Except when being used as a comparison to any of the std utilities.

Re:Let's Destroy C by syockit on Thursday January 30, 2020 @05:00PM (#22196241)
As far as I know, std library specifically uses the word "nonzero" in the documentation to denote non-false value. Therefore you should be using !, &&, || for any boolean ops, but never == nor !=