2022-04-03 16:39:40 +00:00
|
|
|
#include <cstdint>
|
|
|
|
#include <cstdio>
|
|
|
|
#include "list.hpp"
|
|
|
|
|
|
|
|
#define N 0x8
|
|
|
|
|
|
|
|
// Create all of memory
|
|
|
|
block memory[N] = {0};
|
|
|
|
// create the three lists
|
|
|
|
list freelist = {0}, list1 = {0}, list2 = {0};
|
|
|
|
|
|
|
|
int main (int argc, char* argv[]) {
|
|
|
|
// initialize the freelist
|
|
|
|
list_init(&freelist, memory, N);
|
2022-04-03 16:48:24 +00:00
|
|
|
// print the freelist
|
2022-04-03 16:39:40 +00:00
|
|
|
list_print(&freelist);
|
|
|
|
}
|