AllocationStartTime_link* Mac802_16::CreateAllocationStartTime(int NodeID)
{
AllocationStartTime_link *tmp = new AllocationStartTime_link;
tmp->NodeID = NodeID;
tmp->AllocationStartTime = 0;
if(!AllocationStartTime_link_head) {
AllocationStartTime_link_head = AllocationStartTime_link_tail = tmp;
tmp->next = NULL;
}
else {
AllocationStartTime_link_tail->next = tmp;
AllocationStartTime_link_tail = tmp;
tmp->next = NULL;
}
return tmp;
}
沒有留言:
張貼留言