| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | RE: Pointers |
Hi Roger.
07-Sep-03 22:36:17, Roger Scudder wrote to All
RS> From: r.scudder{at}rcn.com To: c_echo{at}yahoogroups.com
RS> -----Original Message-----* Author: Bo Simonsen
KK>> By default, 0 is equal to untrue. If you test a value, such
RS> as
KK>> a pointer, the conditional will be true for any nonzero value.
>>> Okay.
KK>> if(myPointer) free(myPointer);
>>> The same as if(myPointer != NULL) i bet?
RS> Yes, but it is so unintuitive that just about anyone who has ever
RS> learned C has initially found it confusing.
yeah, for example
if("Pigs Fly") puts(" :-) ");
-=> Bye <=-
---
* Origin: Dogs come when you call, cats have answering machines (3:640/1042)SEEN-BY: 633/267 270 @PATH: 640/1042 531 954 774/605 123/500 106/2000 633/267 |
|
| 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™.