TIP: Click on subject to list as thread! ANSI
echo: c_plusplus
to: PAUL DRUGGITT
from: NEIL HELLER
date: 1997-05-20 19:57:00
subject: PASSING STRUCTURES TO FUN

PD> Can anyone tell me how to pass structures of different sizes to a
PD> function ?
One way is to devise a structure which holds a pointer to every
different type/size structure you wish to pass into that function
*plus* a marker-type variable.  That marker type variable will hold a
key value to be decoded by the mega-function so it will know which
pointer to dereference in order to get to the pertinent information.
 * KWQ/2 1.2i * 
--- TMail v1.31.5
---------------
* Origin: Diablo Valley PCUG-BBS, Walnut Creek, CA 510/943-6238 (1:161/55)

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™.