[PATCH] Choose syntax with dynamic list allocation

Pavel Tsekov ptsekov at gmx.net
Mon Jul 25 19:41:39 UTC 2005


Hello,

On Mon, 25 Jul 2005, Leonard den Ottolander wrote:

> >  Please, explain the
> > use of `char ***pnames'.
>
> The char** (string list) that was names is dynamically allocated in
> edit_read_syntax_file(). Since I have to pass that char** by reference I
> end up using a char*** (pnames). Seems excessive at first, but I don't
> know a better way to achieve this. Do you?

char** should suit you.



More information about the mc-devel mailing list