| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | CONVERTING CHAR TO |
JdBP> Or, idiomatically :
JdBP> char ch ;
JdBP> char str[2] = { ch } ;
MB> does that guarantee that str[1] == 0 ?
Yes.
char str[10] = {'a'};
guarantees the str[1] thru str[9] are all hex zeroes. But this is C,
not C++.
* KWQ/2 1.2i *
--- FLAME v1.1
---------------
* Origin: Port Chicago's Loading Dock - 510-676-5359 (1:161/204) |
|
| 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™.