#include " stdio.h " #include < stdlib.h > #define LIST_INIT_SIZE 100 #define LISTINCREMENT 10 #define TRUE 1 #define ERROR 0 #define BOOL int typedef struct ... { int *elem; int length; int listsize;} SqList; BOOL InitList(SqList * L) ... { L->elem = (int *)malloc(LIST_INIT_SIZE*sizeof(int)); if(!L->elem) return ERROR; L->length = 0; L->listsize = LIST_INIT_SIZE; return TRUE;} int main() ... { int i=0; SqList List; InitList(&List); for(i=0;i<10;i++) ...{ List.elem[i] = i; } for(i=0;i<10;i++) ...{ printf("%d ",List.elem[i]); } return TRUE;}