News for hackers. Stuff that matters.
Re:Truthiness in C by projektfu on Friday September 15, 2023 @02:00PM (#37526854)
so

   return (bool)x;
is equivalent to

   return 0!=x;
and

   return !!x;

https://godbolt.org/z/Gq5j8j66a

Sorry, this is the C link:

https://godbolt.org/z/crxecb9c3

There are no comments on this comment yet.