ns-allinone-2.35/ns-2.35/dccp/dccp.cc
int DCCPAgent::findFeatureInList(u_int8_t num, dccp_feature_location location){
	int walker = 0;
	while (walker < feat_list_used_){ //walk through the list
		if (feat_list_num_[walker] == num && feat_list_loc_[walker] == location){
			//we have found the feature
			return walker;
		}
		walker++;
	}
	return -1;
}
/* Find a feature in the list of ongoing negotiations
 * arg: num      - feature number
 *      location - feature location
 * ret: position in the feature list if successfull
 *      otherwise -1
 */
Find a feature in the list of ongoing negotiations
arg: num      - feature number
location - feature location
ret: position in the feature list if successfull
otherwise -1
Find a feature in the list of ongoing negotiations arg : num - feature number location - feature location ret : position in the feature list if successfull otherwise - 1
int DCCPAgent::findFeatureInList(u_int8_t num, dccp_feature_location location){
	int walker = 0;
	while (walker < feat_list_used_){ 
		if (feat_list_num_[walker] == num && feat_list_loc_[walker] == location){
			return walker;
		}
		walker++;
	}
	return -1;
}
int DCCPAgent :: findFeatureInList ( u_int8_t num , dccp_feature_location location ) { int walker = 0 ; while ( walker < feat_list_used_ ) { if ( feat_list_num_ [ walker ] == num && feat_list_loc_ [ walker ] == location ) { return walker ; } walker ++ ; } return -1 ; }
Find a feature in the list of ongoing negotiations
 arg: num      - feature number
      location - feature location
 ret: position in the feature list if successfull
      otherwise -1
Find a feature in the list of ongoing negotiations arg : num - feature number location - feature location ret : position in the feature list if successfull otherwise - 1
//walk through the list //we have found the feature