You're right, I somehow totally missed that. that happens when it is something you would pretty much never expect.
Edit: Oh I see why I missed that, I was looking at the post directly above mine.
...
Type: Posts; User: iMalc
You're right, I somehow totally missed that. that happens when it is something you would pretty much never expect.
Edit: Oh I see why I missed that, I was looking at the post directly above mine.
...
I had no intention of implying it was declared anywhere in particular, or that it is in any way better to use BOOL over bool. But if one is going to use the commonly defined BOOL, TRUE, and FALSE...
This would be my suggestion
printf("The value is: %s\n", ptr_mystruct->pboolean ? "true" : "false");
I bring this up often in code reviews: Boolean values should not be compared against true. All...