T
Tim Quon
I have some global char pinters
char *valuea, *valueb, ...;
and a function to load somedata.
void load_data() {
valuea = "abcdefg";
valueb = "hijklmn";
...
}
Do I need to free this memory before I end my program?
free(valuea);
free(valueb);
free(...);
char *valuea, *valueb, ...;
and a function to load somedata.
void load_data() {
valuea = "abcdefg";
valueb = "hijklmn";
...
}
Do I need to free this memory before I end my program?
free(valuea);
free(valueb);
free(...);