Skip to content

Instantly share code, notes, and snippets.

@pieter
Created August 4, 2008 17:17
Show Gist options
  • Save pieter/3928 to your computer and use it in GitHub Desktop.
Save pieter/3928 to your computer and use it in GitHub Desktop.
if (!prefixcmp(argv[i], "--basis=")) {
char* new = xmalloc(strlen(argv[i]) - 8 + 2);
new[0] = '^';
strcpy(new + 1, argv[i] + 8);
argv[i] = new;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment