Add: calloc
This commit is contained in:
@@ -118,6 +118,10 @@ void kmain(multiboot2_info *mb_info)
|
||||
printf("[debug] malloc test ptr1=0x%x, ptr2=0x%x\n", (unsigned int)ptr1, (unsigned int)ptr2);
|
||||
free(ptr1); free(ptr2);
|
||||
|
||||
void* ptr3 = calloc(1024, 2);
|
||||
printf("[debug] calloc test ptr3=0x%x\n", (unsigned int)ptr3);
|
||||
free (ptr3);
|
||||
|
||||
// usually the place where i do testing
|
||||
|
||||
timer_install();
|
||||
|
||||
Reference in New Issue
Block a user