Antioch wrote:
>
> Ok, so i've come across this thing that i can't identify in any of my C
> books and my head's starting to hurt from banging it on the wall:
>
> char **list_of_something;
>
> Looking through the code, it seems to store arrays of strings. However,
> I'm trying to figure out why they used something like this instead of
> creating a structure or just a regular character array.
>
> Can anyone identify this little deal and explain its usefullness? I would
> appreciate it very very very very very very very much.
>
You're right in that it is an array of strings, or more accurately an
array
of pointers to chars. This would be equivalent to writing the
following:
char *list_of_something[];
Jamie
+------------------------------------------------------------+
| Ensure that you have read the CircleMUD Mailing List FAQ: |
| http://democracy.queensu.ca/~fletcher/Circle/list-faq.html |
+------------------------------------------------------------+
This archive was generated by hypermail 2b30 : 12/15/00 PST