Commit 53a48daa authored by Unknown's avatar Unknown
Browse files

Updated function initialize

parent 67651031
......@@ -13,10 +13,8 @@ int main()
printf("*****W.Sha - Y.Ly******\n\n");
if (DEBUG) printf("Initialization of an instance of List...\n\n");
List* default_list = malloc(sizeof(List));
List* default_list;
initialize(default_list);
printf("Data : %s/n", default_list->head->data);
while(action != 8){
......
......@@ -11,6 +11,9 @@
void initialize(List* list){
printf("INITIALIZE\n");
list = malloc(sizeof(List));
list->head = NULL;
list->tail = NULL;
}
void insert_empty_list(List* list, char* str){
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment