CSE320/hw3/src/main.c

18 lines
353 B
C
Raw Normal View History

#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-25 19:09:35 -04:00
sf_free(y);
2022-03-25 20:27:17 -04:00
sf_free(x);
// sf_show_heap();
return EXIT_SUCCESS;
}