Files
ground-rewrite/src/New/List.c

16 lines
309 B
C
Raw Normal View History

2026-06-13 19:45:36 +10:00
#include "../../include/ground.h"
GroundList _GroundNewList(size_t len, GroundValue* contents) {
GroundList list = {
.capacity = 16,
.count = 0,
.at = malloc(sizeof(GroundValue) * 16)
};
if (list.at == NULL) {
Ground.Flags.error = true;
}
return list;
}