TIP: Click on subject to list as thread! ANSI
echo: c_echo
to: ALL
from: NEIL HELLER
date: 1998-02-10 20:14:00
subject: BOOLEANS

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)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.