| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | string constants |
>> Hi there. Why does emx/gcc disallow the modification of string >> constants? > If you want it with gcc, use -fwriteable-strings Bingo, thanks David. Where did you find that information? >> Or more to the point - why does ANSI/ISO C disallow this? > It doesn't. The actual result of doing so is undefined. Don't rely on > it either way. Understood. The C reference book I have here (mentioned a few messages ago) differs from the ANSI C spec in regards to modifying string literals. I'll go along with the spec any day though. :-) Tnx. --- Msgedsq/2 3.20* Origin: Blizzard of Ozz, Melbourne, Australia (3:633/267.1{at}fidonet) SEEN-BY: 50/99 620/243 623/630 632/348 998 633/154 252 260 267 371 373 SEEN-BY: 634/384 635/301 502 503 544 639/100 711/401 409 410 430 510 807 808 SEEN-BY: 711/809 932 934 712/515 713/888 714/906 800/1 7877/2809 @PATH: 633/267 252 371 635/503 50/99 711/808 809 934 |
|
| 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™.