Array_null and List_null

This commit is contained in:
2025-11-13 02:29:55 +05:00
parent 77589878c1
commit 1775b27980
4 changed files with 7 additions and 3 deletions

View File

@@ -2,7 +2,7 @@
List_ List_alloc_size(u32 initial_size){
if(initial_size == 0)
return List_construct_size(NULL, 0, 0);
return List_null;
u32 allocated_size = ALIGN_TO(initial_size, sizeof(void*));
return List_construct_size(malloc(allocated_size), 0, allocated_size);
}