Code: Select all
job instruction_list[INSTRUCTION_COUNT] = {
{ 5, 1, 0, NULL, "load_bin_file\0" },
{ 5, 1, 0, NULL, "load_com_file" },
{ 5, 1, 0, NULL, "cpu" },
{ 5, 1, 0, NULL, "mem" },
{ 7, 1, 0, NULL, "load_device" },
{ 2, 1, 0, NULL, "randomize_memory" }
};
Code: Select all
struct job {
int priority;
int arg_count;
ll args;
char *name;
int flags;
};
Why wouldn't the char* be initializing, but everything else is?