- FILE * file = fopen(path, "r");
- exit_err(NULL == file, world, err_o);
- uint16_t lines, linemax;
- exit_err(textfile_sizes(file, &linemax, &lines), world, err_s);
-
- char line[linemax];
- struct Command * cmds = malloc(lines * sizeof(struct Command));
- exit_err(NULL == line, world, err_m);
+ FILE * file = try_fopen(path, "r", f_name);
+ uint16_t lines;
+ uint16_t linemax = textfile_sizes(file, &lines);
+ char line[linemax + 1];
+
+ struct Command * cmds = try_malloc(lines * sizeof(struct Command), f_name);