2022-03-05 12:43:06 -05:00
|
|
|
#include <stdio.h>
|
|
|
|
#include "sfmm.h"
|
|
|
|
|
|
|
|
int main(int argc, char const *argv[]) {
|
2022-03-25 20:27:17 -04:00
|
|
|
sf_set_magic(0x0);
|
|
|
|
size_t sz_w = 8, sz_x = 200, sz_y = 300, sz_z = 4;
|
|
|
|
/* void *w = */ sf_malloc(sz_w);
|
|
|
|
void *x = sf_malloc(sz_x);
|
2022-03-25 19:09:35 -04:00
|
|
|
void *y = sf_malloc(sz_y);
|
|
|
|
/* void *z = */ sf_malloc(sz_z);
|
2022-03-05 12:43:06 -05:00
|
|
|
|
2022-03-25 19:09:35 -04:00
|
|
|
sf_free(y);
|
2022-03-25 20:27:17 -04:00
|
|
|
sf_free(x);
|
|
|
|
// sf_show_heap();
|
2022-03-25 17:47:01 -04:00
|
|
|
|
2022-03-05 12:43:06 -05:00
|
|
|
return EXIT_SUCCESS;
|
|
|
|
}
|