6
#define NOB_IMPLEMENTATION
12
char * something_else;
27
int main ([[maybe_unused]] int argc,[[maybe_unused]] char * argv[]) {
28
// DaFoo * foo_list = malloc (sizeof (DaFoo));
29
// for (int i = 0; i <= 1000; i++) {
30
// Foo * f = malloc (sizeof (Foo));
32
// f->something_else = malloc (4);
33
// sprintf (f->something_else, "%i", i);
34
// nob_da_append (foo_list, f);
37
// nob_da_foreach (Foo *, it, foo_list) {
38
// fprintf (stdout, "something: %i, somethig_else: %s\n", (*it)->something, (*it)->something_else);
42
DaInt * int_list = malloc (sizeof (DaInt));
43
for (int32_t i = 0; i <= 1000; i++) {
44
nob_da_append (int_list, i);
47
nob_da_foreach (int32_t , it, int_list) {
49
fprintf (stdout,"%"PRIi32"\n", i);