• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: why does this not work?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
References: 
 >why does this not work? (From: Robert Dell <email@hidden>)
 >Re: why does this not work? (From: Nils Holland <email@hidden>)

  • Prev by Date: Re: why does this not work?
  • Next by Date: Re: Using C++ iostreams for file IO in Cocoa
  • Previous by thread: Re: why does this not work?
  • Next by thread: Re: why does this not work?
  • Index(es):
    • Date
    • Thread