2007年3月16日 星期五

DeleteDlBurstProfile(int NodeID)

void Mac802_16::DeleteDlBurstProfile(int NodeID)
{
DownlinkBurstProfile_link *tmp,*backup;
DownlinkBurstProfile_link *pt = DownlinkBurstProfile_link_head;
tmp = backup = NULL;

if(DownlinkBurstProfile_link_head) {
while(pt) {
if(pt->NodeID == NodeID) {
backup = pt->next;
delete pt;
if(!tmp)
DownlinkBurstProfile_link_head = backup;
else
tmp->next = backup;
return;
}
tmp = pt;
pt = pt->next;
}
return;
}
else
return;
}

沒有留言: