Mail Archives: djgpp/1999/09/02/02:52:52
Okay this is a stupid newbie question but I never actually learned how it
was done, mayby better suited for a C programming group but I want to
allocate an array of strings. I understand how to use strings but not
create them and not multi-dimensional strings. Could someone please give
me an example, the array will hold a list of filenames?
// one dimensional
char * string = (char *)malloc(string_size * sizeof(char));
// two dimensional
Thanks from ((--Dan|Gold--))
ps: "Does anyone know of a really comprehensive more advanced C programming
book?" All I see now of days are C++ books.
- Raw text -