forked from PoliEcho-holding-org/kern
basic heap scafolding
This commit is contained in:
@@ -48,3 +48,19 @@ A pointer to allocated memory or NULL.
|
||||
**Parameters**
|
||||
* `size_t count` -
|
||||
|
||||
**Description**
|
||||
This function allocates memory for `count` elements each of `size` bytes, zeroed-out memory.
|
||||
|
||||
**Returns**
|
||||
A pointer to allocated memory or NULL.
|
||||
|
||||
`void* kfree(void* p)`
|
||||
******************************************
|
||||
**Parameters**
|
||||
* `void* p` -
|
||||
|
||||
**Description**
|
||||
This function frees memory previously allocated using `k[m,z,c]alloc()`
|
||||
|
||||
**Returns**
|
||||
Nothing
|
||||
Reference in New Issue
Block a user