runtime_loader: Add calloc() to heap implementation.

Taken from the bootloader's version, which this heap is based on.
This commit is contained in:
Augustin Cavalier
2024-09-16 13:18:57 -04:00
parent b6554e72fc
commit 6863cd3038
+11
View File
@@ -412,6 +412,17 @@ realloc(void* oldBuffer, size_t newSize)
}
void*
calloc(size_t numElements, size_t size)
{
void* address = malloc(numElements * size);
if (address != NULL)
memset(address, 0, numElements * size);
return address;
}
void
free(void* allocated)
{