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)
|