Original Post
Does anyone know how to ''hide'' data within memory so it can be passed to another program without prior knowledge of what type of data it really is (all it is allowed to know is that its memory, not its structure)?
I want to do something similar in C to the Java vector. A Java vector can be assigned any type of data because retrieval is handed by casting the vector element as the data type to be extracted, does anyone know how to do something similar in C?
The pseudo code version of this problem is sorta like this:
int a=1;
int b=0;
memory c=NULL;
c=a;
b=(int)c
print b;
Output is the integer 1.
Thanks K.
p.s. I''m fully aware this isn''t strictly a GL question, but it is for a GL project.