1 2 3 4 5 6 7 8 9 10 11 12
#include "teensy_list.h" #include <stdio.h> #include <assert.h> void *ty_list_create(void) { struct ty_list_header *header = ty_alloc(sizeof(struct ty_list_header)); header->cap = 0; header->len = 0; return (void*)(header + 1); }