Hi,
Im trying to return a pointer of a struct i've made.
return (object);//<-- this dont work :/
This is my struct.
typedef struct DOBJECT{
var x,y,z;
}DOBJECT;
And this is my function.
DOBJECT* create_dobject(VECTOR* position){
DOBJECT* object; //only a temp object
object.x = position.x;
//...
return (object); // return DOBJECT*(object); <- this is not working too
}
DOBJECT* globobj = create_doject(nullvector);
Sorry for my bad english.
Greetings Ralph.