| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | Pointers & Strings |
-=> F. Tourigny wrote to All <=-
FT> while(*pA != '\0') /* line A (see text) */
FT> {
FT> *pB++ = *pA++; /* line B (see text) */
^^ increment operator!
FT> }
...
FT> why I can't replace (strB) with (pB) in the
FT> following line since pB points at string B:
It doesn't. pB was initalized to strB, but after that, it was incremented.
It now points to the *end* of the string.
... Famous Last Words: "Don't worry, I can handle it"
---
* Origin: * My Place BBS * Bowie, Md USA * V.34 * (301)805-1602 * (1:109/570)SEEN-BY: 396/1 622/419 632/371 633/260 267 270 371 634/397 635/506 728 SEEN-BY: 639/252 670/213 218 @PATH: 109/8 13/25 270/101 396/1 633/260 635/506 728 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™.