This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <stdlib.h> | |
#define DA_INIT_CAP 256U // Initial Capacity | |
// Define the structure | |
#define DA_DEFINE(name, type) \ | |
typedef struct { \ | |
type *items; \ | |
size_t count; \ |