<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hello<br>
    <br>
    <i>[I'll prefix this question by stating that I am not a strong C
      programmer; my long experience is in a wide range of languages
      other than C</i><i>]</i><br>
    <br>
    I wish to call some functions in a complex C library from D. Since
    this a large & complex library, I've wrapped a bunch of the
    functions using SWIG (swig -d -d2 ...). One of the C functions has a
    signature like:<br>
    <br>
        
    void foo(const char * const *keys);<br>
    <br>
    SWIG has given me a D function signature like:<br>
    <br>
        void foo(char** keys);<br>
    <br>
    In my D program it is natural to represent some keys as an array of
    strings, for example:<br>
    <br>
        string[] mykeys;<br>
    <br>
    How should I convert mykeys from string[] to char** so that I can
    call foo with mykeys as the actual parameter?<br>
    <br>
    Regards<br>
    <br>
    <br>
  </body>
</html>