This is the function prototype I have:
UINT8_t CTargetList::GetListOfTgts( CHAR_t Callsign[cTGT_MAX_CALLSIGN_CHAR],
sTarget_t* ListOfTgtForCallsign[bNO_OF_TARGETS] );
Now when I create the structure to pass to this function
sTarget_t* TgtList[bNO_OF_TARGETS];
UINT8_t bRetTgts = list1.GetListOfTgts( "C1",&TgtList[bNO_OF_TARGETS]);
The structure is created correctly but when I trace the function, ListOfTgtForCallsign must be the array of pointers. Instead, ListOfTgtForCallsign only contains one pointer instead of bNO_OF_TARGETS. I want the list of pointers TgtList to be passed correctly as the ListOfTgtForCallsign parameter. What am I doing wrong?