make the list a type itself
This commit is contained in:
		
							parent
							
								
									7f85731e5e
								
							
						
					
					
						commit
						469f5a7da3
					
				
					 1 changed files with 1 additions and 0 deletions
				
			
		|  | @ -94,6 +94,7 @@ int main(int argc, char *argv[]) { | |||
|   printf("list_length = %d\n", list_length(emptylist)); | ||||
| 
 | ||||
|   list_t *foolist = malloc(sizeof(list_t)); | ||||
|   list_init(foolist); | ||||
|   list_node_t foo = { 1, NULL }; | ||||
|   list_add(foolist, &foo); | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue