Files
c_soft/soft/mystdlib.h

29 lines
400 B
C
Raw Normal View History

2024-06-18 19:37:43 +08:00
#ifndef mystdlib_h__
#define mystdlib_h__
#include "stdint.h"
#include "stdlib.h"
#define MAP_SIZE_STEP 50
typedef struct _map_def{
size_t map_size;
size_t mam_used;
size_t mem_map[0];
}map_def;
void __mem_clear(map_def **m);
void __mem_mov(map_def **d,map_def **s);
2024-10-30 19:08:46 +08:00
void *mem_calloc(size_t memb_num, size_t memb_size);
2024-06-18 19:37:43 +08:00
void *mem_malloc(size_t size);
void mem_free(void *p);
#endif