Files
advent-of-code-2023/input_handler.h

24 lines
478 B
C

//
// Created by Lennart on 02/12/2023.
//
#include <stdio.h>
#ifndef ADVENT_OF_CODE_2023_INPUT_HANDLER_H
char* read_line(FILE *f, char **buffer, int *capacity);
#define MAX(a, b) a > b ? a : b
#define MIN(a, b) a < b ? a : b
static inline int min(const int a, const int b) {
return a < b ? a : b;
}
static inline int max(const int a, const int b) {
return a > b ? a : b;
}
#define ADVENT_OF_CODE_2023_INPUT_HANDLER_H
#endif //ADVENT_OF_CODE_2023_INPUT_HANDLER_H