Advent of Code

Diff
Login

Diff

Differences From Artifact [838e050968]:

To Artifact [3f85574365]:


1
2


3
4
5
6
7
8
9
#ifndef AOCUTILS_H_INCLUDED
#define AOCUTILS_H_INCLUDED



struct TextGrid {
    unsigned rows, cols;
    char *data; // may have '\n' at end of rows
};

bool TGvalid(struct TextGrid *tg, unsigned row, unsigned col);


>
>







1
2
3
4
5
6
7
8
9
10
11
#ifndef AOCUTILS_H_INCLUDED
#define AOCUTILS_H_INCLUDED

#include <stdbool.h>

struct TextGrid {
    unsigned rows, cols;
    char *data; // may have '\n' at end of rows
};

bool TGvalid(struct TextGrid *tg, unsigned row, unsigned col);