Given the function:
BOOL
invalid_crc(char * pcnd, int length)
{
return(calculate_crc(pcnd, length) != 0));
}
where calculate_crc() is a function which returns an int and BOOL is
defined as a system "16-bit Boolean value" (no definition given of
"Boolean" that I could find). Would it be proper in this instance to
drop the " != 0"? Can boolean have all the values of an int (with
only 0 and everything else counting)?
* KWQ/2 1.2i *
--- FLAME v1.1
---------------
* Origin: Port Chicago's Loading Dock - 510-676-5359 (1:161/204)
|