For OO in C, do something like this:
then assign the correct functions to the correct members with an initialization function (call it new =). Its not true OO (no inheritance), but it works =).Code:struct MyFakeClass { func* member1; func2* member2; };
Z.




Reply With Quote