+ return 0;
+}
+
+
+
+static char * init_command_db_err(char * line_copy, uint8_t line_number)
+{
+ char * f_name = "init_command_db_err";
+ char * err_start = "Failed reading command config file at ";
+ char * err_middle = " due to malformed line ";
+ line_copy[strlen(line_copy) - 1] = '\0';
+ char * err = try_malloc(strlen(err_start) + strlen(world.path_commands) +
+ strlen(err_middle) + 3 + 2 + strlen(line_copy) + 1,
+ f_name);
+ sprintf(err, "%s%s%s%d: %s", err_start, world.path_commands, err_middle,
+ line_number, line_copy);
+ return err;