Initial commit
This commit is contained in:
15
src/New/List.c
Normal file
15
src/New/List.c
Normal file
@@ -0,0 +1,15 @@
|
||||
#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;
|
||||
}
|
||||
Reference in New Issue
Block a user