that should work however you need to prevent passing an empty pointer laugh

VECTOR *result=malloc (sizeof (vector));
calculate (result);
wait_for_my(calculate); or wait_for (calculate);
etc etc....

jb


Compulsive compiler