Thank you! That´s what I was wanting to confirm!
;-)
User Profile
Collapse
-
C question: void f(char* charPointer) { free(charPointer); }
Hi!
I have a program and in this program I have to do a lot of close´s and free´s. The program is something like this:
static int finalize(FILE* f1, FILE* f2, char* c) {if (f1 != NULL) {}
fclose(f1);
}
if (f2 != NULL) {
fclose(f2);
}
if (c != NULL) {
free(c);
}
return 0;
int main(int...
No activity results to display
Show More
Leave a comment: