| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | Avoid disaster |
Darin,
> JD> char string[4];
> JD> string="OUCH";
DM > You mean:
DM > strcpy(string, "OUCH");
No. "OUCH" is 5 chars long; string[] is four. Quart into pint pot
syndrome.
> The operator = won't work here.
True, but nothing at all will cope with these circumstances. :-)
bb.
---
---------------
* Origin: bill@escan.demon.co.uk (2:2504/200) |
|
| 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™.