TIP: Click on subject to list as thread! ANSI
echo: cis.tandy.coco
to: Mark Griffith 76070,41 (X)
from: Bill Dickhaus 70325,523
date: 1990-05-01 22:16:53
subject: #3173-#C arrays

#: 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.

SOURCE: compuserve via textfiles.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.