TIP: Click on subject to list as thread! ANSI
echo: locsysop
to: Bob Lawrence
from: Paul Edwards
date: 1996-10-31 08:15:44
subject: Special Requests

PE> NULLZERO.C(29): Warning! W102: Type mismatch

BL> Eh? Can't I say while(1 == 1)?

You can, it was probably triggered off from something else.

BL> As I've told you earlier, I think portability is silly. You have to 
BL> recompile, so you may as well fix it at the same time. It's really no
BL> different than what happens in normal writing... you leave things out
BL> accidentally and do running rerpairs as the compiler directs.

The idea is to not need to be told, you get it right first time.

PE> line[16] = '\0';
PE> names[n] = malloc(16);

BL> I think I got that wrong, too. I vaguely remember David telling me
BL> you *have* to typcast what malloc allows, thus... (char*)malloc(16);

Not in C.  In C++ that is "true" (not sure if it's only a
warning).  BFN.  Paul. 
@EOT:

---
* Origin: X (3:711/934.9)

SOURCE: echomail via fidonet.ozzmosis.com

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™.