| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | Neat little thing |
Hello Peter,
PR> I was browsing the echo's and came across this
PR> little program you posted to switch windows. GC.C.
PR> After adding only a (void*) infront of the malloc it
PR> compiled fine under borlandc 2.0. Neat little thing,
--cut--
PF> Since malloc returns a 'void *', I find it surprising
PF> you had to add another one (Borland you say? No wonder).
Do most compilers automatically convert void* to the destination type ? I'm
really starting to wonder if I should experience another compiler
.
BTW if you remember the msg's about the screw up with the volatile thing in
borlandc you won't be suprised to know I took some more time to test it,
and it seems to only work if the code's within the same file (strange
indeed). This was however only tested as far as my use of it extended (the
volatile member variables).
Paul Rider.
--- Maximus/2 2.02
* Origin: Rodent! Bbs ( Os/2 ) (1:163/427)SEEN-BY: 105/42 620/243 711/401 409 410 413 430 807 808 809 934 955 712/407 SEEN-BY: 712/515 628 704 713/888 800/1 7877/2809 @PATH: 163/427 335 307 99 12/12 3615/50 396/1 270/101 105/103 42 712/515 @PATH: 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™.