converting a char[][] to a char**

Daniel Keep daniel.keep.lists at gmail.com
Fri Apr 21 15:20:26 PDT 2006


[snip]
> 
> alias char* cahr_p;   
> // alias b/c I can't remember the syntax for a array of ptrs
> 

Read it right-to-left.

char*[] <-- array of pointers to chars

If that doesn't help, you can always make an alias, and *then* expand it.

alias char* char_p;

char_p[]
    --> (char*)[]
    -->   char*[]

At least, that's how I work it out :)

	-- Daniel

-- 

v1sw5+8Yhw5ln4+5pr6OFma8u6+7Lw4Tm6+7l6+7D
a2Xs3MSr2e4/6+7t4TNSMb6HTOp5en5g6RAHCP    http://hackerkey.com/



More information about the Digitalmars-d mailing list