2022-03-05 12:43:06 -05:00
|
|
|
#include <stdio.h>
|
|
|
|
#include "sfmm.h"
|
|
|
|
|
|
|
|
int main(int argc, char const *argv[]) {
|
2022-03-25 17:47:01 -04:00
|
|
|
sf_set_magic(0x0);
|
2022-03-05 12:43:06 -05:00
|
|
|
double* ptr = sf_malloc(sizeof(double));
|
|
|
|
|
2022-03-25 17:47:01 -04:00
|
|
|
*ptr = 114514;
|
2022-03-05 12:43:06 -05:00
|
|
|
|
|
|
|
printf("%f\n", *ptr);
|
|
|
|
|
|
|
|
sf_free(ptr);
|
|
|
|
|
2022-03-25 17:47:01 -04:00
|
|
|
sf_show_heap();
|
|
|
|
sf_show_free_lists();
|
|
|
|
|
2022-03-05 12:43:06 -05:00
|
|
|
return EXIT_SUCCESS;
|
|
|
|
}
|