diff options
Diffstat (limited to '8/part2.c')
| -rw-r--r-- | 8/part2.c | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -1,8 +1,6 @@ #include <stdio.h> #include <stdint.h> #include <stdlib.h> -#include <malloc.h> -#include <string.h> #define INPUT_LEN 650 @@ -48,7 +46,7 @@ int exe_program(const char *filename) // Include space for newline and string terminator char buffer[16] = { 0 }; - struct Operation *ops = malloc(INPUT_LEN * sizeof(struct Operation)); + struct Operation ops[INPUT_LEN]; size_t opcount = 0; while (fgets(buffer, 16, file)) { |
