chore: use new read_line function

This commit is contained in:
2023-12-03 10:36:28 +01:00
parent 3474b93be1
commit db2c43032f
4 changed files with 11 additions and 16 deletions

View File

@@ -8,7 +8,7 @@
#define INITIAL_CAPACITY 64
const char* read_line(FILE *f, char **buffer, int *capacity) {
char* read_line(FILE *f, char **buffer, int *capacity) {
if(*buffer == NULL) {
*buffer = malloc(2 * sizeof (char) * INITIAL_CAPACITY);
*capacity = INITIAL_CAPACITY;