I know this isn't really a ROM question however i'm trying to write a 
pfile editor and I want to learn to use C to do it.  I know C++ has a bool 
function however i can't find it in C so i assume it isn't there I was 
wondering 2 things first is there a bool in C if not where is the code in 
ROM to make bool variables?

the code i thought up to make a bool function would be something like...

int bool(char boolvalue)
{
        if(boolvalue==TRUE)
                return 1;
        else
                return 0;
}

seems pretty simple... ?

however would i be able to make it so i could actually type:

bool test;

if (test)
  statments;

or would i have to do...

  char test;
  test = FALSE;
  bool(test);

witch just seems to be a big pain.

thanks in advance
        Infernal




Reply via email to