freeing mallocs
Sven Heinicke
sven at cs.widener.edu
Wed Apr 17 04:30:23 AEST 1991
question 26 of the FAQ is "How do I dynamically allocate a
multidimensional array?". To deallocate a multidimensional array can
I just do a:
free(array);
Or do I have to do this:
for(i = 1;i < nrows; i++)
free(array[i]);
free(array);
thanks.
--
sven at cs.widener.edu Widener CS system manager
Sven Mike Heinicke and Student
(pssmheinicke at cyber.widener.edu (if you must))
More information about the Comp.lang.c
mailing list