approved tecs_dlog, added sys_util.c
This commit is contained in:
13
tecs/sys_util.c
Normal file
13
tecs/sys_util.c
Normal file
@@ -0,0 +1,13 @@
|
||||
#include <stdlib.h>
|
||||
|
||||
void *my_malloc(size_t size, const char *text) {
|
||||
void *ptr;
|
||||
ptr=calloc(1,size);
|
||||
/* printf("new %s %X %d\n", text, ptr, size); */
|
||||
return(ptr);
|
||||
}
|
||||
|
||||
void my_free(void *ptr) {
|
||||
/* printf("my_free %X\n", ptr); */
|
||||
free(ptr);
|
||||
}
|
||||
Reference in New Issue
Block a user