Original Post
I asked this question a few days ago and realised that the suggestion I used was copying the variable, which means, of course that the values the procedure creates do not return to the previous procedure so here it is again.
I have 2 procedures:
void s_loopback_init(TRACK_OBJ *toreceive_trackobject)
{
}
and:
void generate_track(TRACK_SECTION *toreceive_trackdata[],int driftX[], int driftY[], int trackSize)
{
}
s_loopback_init calls generate_track using the code:
generate_track(toreceive_trackobject->track,toreceive_trackobject->driftX,toreceive_trackobject->driftY, toreceive_trackobject->size);
Now I need to pass the address of track (from toreceive_trackobject->track) to the next one, rather than copy it because I need that data filled, so what I need to do is the equivilant of:
toreceive_trackobject->&track so that the address is passed.
Are there any suggestions on how to do this?
WDA