First commit, Vystem v0.1
This commit is contained in:
12
shelter/lib/include/std/malloc.h
Normal file
12
shelter/lib/include/std/malloc.h
Normal file
@@ -0,0 +1,12 @@
|
||||
// SPDX-License-Identifier: MPL-2.0
|
||||
#ifndef SH_LIB_MALLOC_H
|
||||
#define SH_LIB_MALLOC_H
|
||||
#include "std/status.h"
|
||||
#include "std/type.h"
|
||||
// Return last status
|
||||
SH_STATUS sh_malloc_get_last_status();
|
||||
// Allocate memory
|
||||
void* sh_malloc(sh_uint64 size);
|
||||
// Free memory
|
||||
void sh_free(void *ptr);
|
||||
#endif
|
||||
Reference in New Issue
Block a user