Skip to content

Instantly share code, notes, and snippets.

@MarkyC
Created February 24, 2013 17:56
Show Gist options
  • Select an option

  • Save MarkyC/5024827 to your computer and use it in GitHub Desktop.

Select an option

Save MarkyC/5024827 to your computer and use it in GitHub Desktop.
NODELIST new;
new = malloc(nodeList.size * sizeof(NODE)); // I could be wrong here
int i;
for (i = 0; i < nodeList.size; i++) {
NODE *n = pop(nodeList);
push(new, n, n->data);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment