TIP: Click on subject to list as thread! ANSI
echo: c_plusplus
to: PAUL DRUGGITT
from: KURT KUZBA
date: 1997-06-04 12:56:00
subject: passing structures to fun

PD>   I recently asked a question about passing structures to
PD>   functions in this echo.
PD>   tell me where I can obtain the International C_ECHO ...
   It should be available to your Sysop. Just request that it
   be included in those ECHOES carried on your BBS.
   You would simply pass a pointer to the struct, and a map of
   the struct contents. This would work in C or C++.
   You would need to pass it as a pointer of type void, or use
   a specific cast in the calling function.
   Since the structs themselves are not dynamic, and are known
   at compile time, the function should really have the ability
   built into it to decipher the contents of any struct.
   If you are using formatted data blocks, as opposed to
   structs, then the content format would be unknown at compile
   time, and a map to the contents would need to exist.
   In this case, you might use pointers of type char and pass
   the content map along with the data block.
> ] I am Solo of Borg, and I've got a bad feeling about this....
---
---------------
* Origin: *YOPS ]I[* 3.1 GIG * RA/FD/FE RADist * Milwaukee, WI (1:154/750)

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