chore: use new read_line function
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user