| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | Re: [C] Question about external variable initialization |
Hi Pascal. 27-Jan-04 22:50:20, Pascal Schmidt wrote to Bo Simonsen BS>> I get in a NULL terminated string: BS>> H e l l o W o r l d \0 <- text + x BS>> 0 1 2 3 4 5 6 7 8 9 10 11 <- x BS>> strlen will return 11. So there will be space for \0. PS> No, strlen will return 10. no 11, 5 letters in "hello" 5 letters in "world" 1 space makes 11 the length of the string. -=> Bye <=- ---* Origin: I'm pink, therefore I'm SPAM. (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™.