public_variable_neighborhood/public_variable_neighborhood.h
/**
 * Finds the neighbor entry for a specific id.
 */
Finds the neighbor entry for a specific id.
Finds the neighbor entry for a specific id .
struct Nbr* pvn_getNbr(struct PVN* pvn, uint16_t id)
{
	struct Nbr* nbr = pvn_getNbrs(pvn);
	for(; nbr!=0; nbr=pvn_getNextNbr(nbr)) {
		if(nbr->id == id) return nbr;
	}
	return 0;
}
struct Nbr * pvn_getNbr ( struct PVN * pvn , uint16_t id ) { struct Nbr * nbr = pvn_getNbrs ( pvn ) ; for ( ; nbr != 0 ; nbr = pvn_getNextNbr ( nbr ) ) { if ( nbr -> id == id ) return nbr ; } return 0 ; }
Finds the neighbor entry for a specific id.
Finds the neighbor entry for a specific id .