S
srini
Hi
I need to create two-dimensional array; number of rows and columns
unknown at compile time. The idea is to read a file, print it if
requested by user and to delete when the program quits.
Here is what I came up with using C:
struct diskinfo {
char **part_name; /* name of each partition */
int **num_blocs;
}
I need only one instance of 'diskinfo' in the program. What is the best
way to create & free memory and what are the C libraries that I should
include for this ?
Thanks for your time and help
-Srini
I need to create two-dimensional array; number of rows and columns
unknown at compile time. The idea is to read a file, print it if
requested by user and to delete when the program quits.
Here is what I came up with using C:
struct diskinfo {
char **part_name; /* name of each partition */
int **num_blocs;
}
I need only one instance of 'diskinfo' in the program. What is the best
way to create & free memory and what are the C libraries that I should
include for this ?
Thanks for your time and help
-Srini