Re: why does this not work?
Re: why does this not work?
- Subject: Re: why does this not work?
- From: Nils Holland <email@hidden>
- Date: Thu, 02 Feb 2006 13:27:23 +0100
Damien Bobillot schrieb:
I think that the bool type was added in C99. However, it doesn't seem
to work automatically, one has to manually add :
#include <c.h>
Well, although I must admint that I have never used a bool in C, I think
I remember having read something about C99 adding it via <stdbool.h>
A quick search on the web revealed this example:
#include <stdbool.h>
void foo()
{
int this = 99;
int that = -99;
bool b;
if (this || that)
b = true;
else
b = false;
}
Gretings,
Nils
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden