#: 3216 S10/Tandy CoCo
01-May-90 22:16:53
Sb: #3173-#C arrays
Fm: Bill Dickhaus 70325,523
To: Mark Griffith 76070,41 (X)
Mark,
Since you seem to have all the answers , how do I define a ointer to an
array of pointers with a variable number of elements? I have a situation where
I want to define an array of pointers to strings, but I don't know in advance
how many strings I need to point to. I want to be able to malloc() the array of
pointers, and then use a pointer to get to each element. I know how to define a
variable array of integers, and a pointer to a fixed array of pointers to
characters (which is how I've got it working now, just defining a large array)
but haven't found any examples of how to define a pointer to an (undefined)
array of pointers.
Bill
There are 2 Replies.
|