Hi,
Im trying to return a pointer of a struct i've made.
Code:
return (object);//<-- this dont work :/

This is my struct.
Code:
typedef struct DOBJECT{
  var x,y,z;
}DOBJECT;

And this is my function.
Code:
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.