bloodline wrote:
Ahhh pointer magic then :-) :pint:
Well, this is only C after all. You have 2 options
1) allocate memory using exec or clib (the former is better for OS specific stuff of course)
2) create a constructor / destructor function pair, that in turn use (1) in order to achieve their task.
Either way, it always comes down to pointer magic. C++ offers various other approaches, except that too is also pointer magic, you just don't necessarily have to cast manually (depending on how you allocated your object,that is).
Let's face it, any raw memory handling for object memory will always involve some form of explicit/implicit pointer conversion.