int main() { int arrData[10] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10}; Node* pHead = NULL; pHead = CreateList(arrData, sizeof(arrData) / sizeof(int)); OutputList(pHead); pHead = ReverseList(pHead); OutputList(pHead); pHead = DestroyList(pHead); return 0; }
/* OutputStats: print desired stats on standard output */ void OutputStats(void) { if (doDurs) OutputDurs(); if (doBigram) { if (doBOff) OutputBoBigram(); else OutputMatBigram(); } if (doList) OutputList(); if (doPCount || doLCount) OutputCounts(); /* Breaks log->phy links */ }