Initializacia
This commit is contained in:
		
							parent
							
								
									5501d3b44c
								
							
						
					
					
						commit
						ee9e324e9f
					
				| @ -42,6 +42,13 @@ struct tree* load_tree() { | ||||
|             destroy_tree(node); | ||||
|             return NULL; | ||||
|         } | ||||
|     } else {   | ||||
|         struct tree* extra = read_tree();  | ||||
|         if (extra) { | ||||
|             free(extra);  | ||||
|             destroy_tree(node); | ||||
|             return NULL; | ||||
|         } | ||||
|     } | ||||
| 
 | ||||
|     return node; | ||||
| @ -49,6 +56,7 @@ struct tree* load_tree() { | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| void run_tree(struct tree* tree) { | ||||
|     if (!tree) { | ||||
|         return; | ||||
| @ -115,3 +123,4 @@ int main() { | ||||
|     return 0; | ||||
| } | ||||
| 
 | ||||
| 
 | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user