Unix equivalent of a variant??
cswiger at mac.com
Tue Feb 1 11:32:58 PST 2005
On Feb 1, 2005, at 11:43 AM, Jonathon McKitrick wrote:
> I need the equivalent of a variant, however. A hold-everything
> that can be any type in C/C++. Is there something already out there I
> use or should I just roll my own?
Your question probably belongs on comp.lang.c, but the cannonical way
of handling "data of any type" is a memory buffer and a (void *).
Watch out for host data alignment restrictions.
More information about the freebsd-questions