Skip to content

Instantly share code, notes, and snippets.

@khous
Created February 1, 2017 04:47
Show Gist options
  • Save khous/a27de4c2b4e1ae75a75416d6d023cb70 to your computer and use it in GitHub Desktop.
Save khous/a27de4c2b4e1ae75a75416d6d023cb70 to your computer and use it in GitHub Desktop.
for (int j = 0; j < i - 1; j++) {
link_list_node temp = *cur_command;
//Just overwrite the original list, TODO, worry about leaking old data lata
duct* muct = malloc(sizeof(duct));
char** farts = execlp_tokenize_command(temp.data);
(*muct).args = farts;
temp.data = muct;
cur_command = temp.next;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment