| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | casting non-void to void |
06 May 96 16:09, Peter Collis wrote to Paul Edwards: ac>> char *dest, *srce; ac>> strcpy(dest, srce); ac>> gives a warning but ac>> char *dest, *srce; ac>> (void) strcpy(dest, srce); ac>> does not ... ? PE>> I think so, but not recently. In my experience, lint, microsoft PE>> c and cset/2 produce the most ridiculous errors known to man. PC> I can't comment on MSC but QC25 compiles the above without warnings PC> even with warning levels cranked up to 4 (full) I should think so, as the two versions of the code are effectively the same as far as any ANSI/ISO C compiler should be concerned. I wouldn't recommend running it though. :-) BTW, QuickC 2.5 is essentially the same as MSC 6.0, only MSC supports OS/2 code generation and a few other advanced features. --- GoldED/W32 3.00.Alpha1 UNREG* Origin: Blizzard of Ozz, Melbourne, Australia (3:635/727.4) SEEN-BY: 50/99 620/243 623/630 632/349 635/503 544 727 728 711/401 409 410 SEEN-BY: 711/413 430 808 809 934 712/515 713/888 714/906 800/1 @PATH: 635/727 544 50/99 711/808 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™.