add: char* dataTypes[]={"Grouped"} ; char* octetStrings[]={"OctetString","UTF8String","DiameterIdentity"} ; char* addressTypes[]={"IPAddress","DiameterURI","IPFilterRule"} ; char* integer32Types[]={"Interger32","Unsigned32","Enumerated"} ; char* integer64Types[]={"Interger32","Unsigned32"} ; char* timeTypes[]={"Time"} ;
context: AAAReturnCode AAAFindDictionaryEntry(  AAAVendorId vendorId,                                       char *avpName,                                       AAA_AVPCode avpCode,                                       AAAValue value,                                       AAADictionaryEntry *entry){   char vendorName[]="ATTRIBUTE";   char* vendorAttr=vendorName;   char* charEntry[4];   int i;         if(vendorId != 0){      if(vendorNameFromId(vendorId,vendorAttr))         return AAA_ERR_FAILURE; //wrong vendorId   }   //entry=(AAADictionaryEntry*)malloc(sizeof(AAADictionaryEntry));   if(entry==NULL)      return AAA_ERR_FAILURE;   charEntry[0]=vendorAttr;   charEntry[1]=avpName;   if(avpCode==0)      charEntry[2]=NULL;   else{      charEntry[2]=(char*)malloc(10);      sprintf(charEntry[2],"%i",avpCode);   }   charEntry[3]=NULL;      if(!findEntry(charEntry,4))      return AAA_ERR_FAILURE;   entry->vendorId=vendorId;   entry->avpName=(char*)malloc(strlen(charEntry[1]+1));   strcpy(entry->avpName,charEntry[1]);   entry->avpCode=atoi(charEntry[2]);	char* dataTypes[]={"Grouped"} ;   for(i=0;i<sizeof(dataTypes)/sizeof(char*);i++)   	if(!strcasecmp(charEntry[4],dataTypes[i]))			entry->avpType=AAA_AVP_DATA_TYPE;   char* octetStrings[]={"OctetString","UTF8String","DiameterIdentity"} ;     for(i=0;i<sizeof(octetStrings)/sizeof(char*);i++)   	if(!strcasecmp(charEntry[4],octetStrings[i]))			entry->avpType=AAA_AVP_STRING_TYPE;	char* addressTypes[]={"IPAddress","DiameterURI","IPFilterRule"} ;   for(i=0;i<sizeof(addressTypes)/sizeof(char*);i++)   	if(!strcasecmp(charEntry[4],addressTypes[i]))			entry->avpType=AAA_AVP_ADDRESS_TYPE;	char* integer32Types[]={"Interger32","Unsigned32","Enumerated"} ;   for(i=0;i<sizeof(integer32Types)/sizeof(char*);i++)   	if(!strcasecmp(charEntry[4],integer32Types[i]))			entry->avpType=AAA_AVP_INTEGER32_TYPE;	char* integer64Types[]={"Interger64","Unsigned64"} ;   for(i=0;i<sizeof(integer64Types)/sizeof(char*);i++)   	if(!strcasecmp(charEntry[4],integer64Types[i]))			entry->avpType=AAA_AVP_INTEGER64_TYPE;	char* timeTypes[]={"Time"} ;   for(i=0;i<sizeof(timeTypes)/sizeof(char*);i++)   	if(!strcasecmp(charEntry[4],timeTypes[i]))			entry->avpType=AAA_AVP_TIME_TYPE;      return AAA_ERR_SUCCESS;      }