順序表使用完後
void Destroy_SeqList(PSeqList *SeqListPoint)
{ /*銷毀順序表
if (*SeqListPoint)
free (*SeqListPoint) ;
*SeqListPoint=NULL;
return ;
}
算法
設調用函數為主函數
main()
{ PSeqList SeqListPoint;
SeqListPoint =Init_SeqList( );
……
Destroy_SeqList (&SeqListPoint);
}
[
From:http://tw.wingwit.com/Article/program/sjjg/201311/23647.html