LinkList.h #ifndef LINKLIST_H #define LINKLIST_H typedef int ElemType; typedef struct LNode { ElemType *data; struct LNode *next; int length; }LNode, *LinkList; LinkList initList(); void insertList(LinkList l, ElemType *data, int sizeOfData); int length(LinkList l); void reverse(LinkList l); #endif LinkList.c #include "LinkList.h" #include <stdlib.h> #include <string.h> //************************************ // Method: initList // FullName: initList // Access: public // Returns: LinkList // Qualifier: //************************************ LinkList initList() { LinkList l = 0; l = (LinkList)malloc(sizeof(LNode)); if(l == NULL) return NULL; l->data = 0; l->next = NULL; l->length = 0; return l; } //************************************ // Method: insertL