This would make my life a little bit easier..


typedef struct TEST {
var vVartest;
} TEST;


TEST* createStruct()
{
TEST* testPointer=malloc(sizeof(TEST));
testPointer->vVartest=5;

return (testPointer);
}

void main()
{
var vTemp=createStruct()->vVartest; //syntax error in this line
}



INTENSE AI: Use the Best AI around for your games!
Join our Forums now! | Get Intense Pathfinding 3 Free!