CERRLIST *cerrlist;
/**
- * ã\82¨ã\83©ã\83¼ã\83ªã\82¹ã\83\88ã\82\92ä½\9cæ\88\90ã\83»追加する
+ * ã\82¨ã\83©ã\83¼ã\83ªã\82¹ã\83\88ã\82\92ä½\9cæ\88\90ã\81¾ã\81\9fã\81¯追加する
*/
bool addcerrlist(int newerrc, CERR newerrv[])
{
return true;
}
+/**
+ * エラーリストを表示する
+ */
+void printcerrlist()
+{
+ CERRLIST *p;
+
+ if(cerrlist == NULL) {
+ puts("error list is null.");
+ } else {
+ for(p = cerrlist; p != NULL; p = p->next) {
+ printf("%d: %s\n", p->cerr->num, p->cerr->msg);
+ }
+ }
+}
+
/**
* 現在のエラーを設定する
*/