18 lines
366 B
C++
18 lines
366 B
C++
#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);
|
|
// print the freelist
|
|
list_print(&freelist);
|
|
}
|