| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | void pointers |
HS> I thought I could just do a simple cast to the structure+1 (the JB>extra byte HS> is where the TYPE lies) and hence determine what the structure is. JB>This is what unions are intended for, I admit the syntax is a little JB>more JB>cumbersome than the Pascal version (variant records) but it'll let you JB>lose JB>all the casts, and make your code more readable. How? ... It's not the bullet that kills you, it's the hole! --- Ezycom V1.48g0 01fd016b* Origin: Fox's Lair BBS Bris Aus +61-7-38033908 V34+ Node 2 (3:640/238) SEEN-BY: 396/1 632/0 371 633/260 267 270 371 634/397 635/506 728 810 639/252 SEEN-BY: 670/218 @PATH: 640/238 201 270/101 396/1 633/260 635/506 728 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™.