Hi guys I m trying my hand on some program::where there is a function like this::
void IVR_AL_GET_VM_RETRIEVAL_PROFILE_REQ(ds *pline, char xmlToken[e_LASTCOUNT][5000])
{
strcpy(xmlToken[e_MESSAGETYPE],"GET_VM_RETRIEVAL_PROFILE_REQ");
strcpy(xmlToken[e_MSISDN],pline->user_info.msisdn);
strcpy(xmlToken[e_TRANSACTION_ID],pline->transactionId);
return;
}
where ds and user_info are structures::
struct user_info
{
int msisdn;
char redirReason[17]; //Used in GET_VM_DEPOSIT_PROFILE_REQ
char *caller_no; //To be used in GET_VM_DEPOSIT_PROFILE_REQ (not used in the called code)
char *availMsgId; //used in SUBMIT_VM_MSG_REQ
char subReqType[13]; //Msg category used inside SUBMIT_VM_MSG_REQ function
char msgPriority[16]; //Used in SUBMIT_VM_MSG_REQ
int frndListId; /*Id of the friendlist in which number is to be added or deleted used in function ADD_NUM_IN_FRNDLIST_REQ and DEL_NUM_FROM_FRNDLIST_REQ*/
char *currNum; /*Number to be added or deleted from/to friendlist used in ADD_NUM_IN_FRNDLIST_REQ , DEL_NUM_FROM_FRNDLIST_REQ, ADD_CALLER_GREET_REQ,DEL_CALLER_GREET_REQ */
char *welToneId; /*Used in UPDATE_DEF_GREET_REQ, DEL_DEF_GREET_REQ, ADD_CALLER_GREET_REQ, DEL_CALLER_GREET_REQ, DEL_MSG_REQ, SAVE_MSG_REQ,LISTEN_MSG_REQ::Id of the tone to be set on a number...default is msisdn.vox*/
char *pin; //Used in CHANGE_PIN_REQ
}ui1;
struct ds
{
struct user_info ui;
char *transactionId;
}d1;
on compilation its giving an error like given below::: error: expected ‘)’ before ‘*’ token
so please tell me a way out of this error