C - Pass Array of Strings as Function Parameter
<p>I need to pass a pre-allocated array of strings as a function parameter, and strcpy() to each of the strings within the string array, as in this example:</p>

<pre><code> static void string_copy(char * pointer[]) {

    strcpy(pointer[0], "Hello ");

    strcpy(pointer[1], "world");

}

int main(int argc, const char * argv[]) {

    char my_array[10][100];

    string_copy(my_array);

    printf("%s%s\n", my_array[0], my_array[1]);

}
</code></pre>

<p>And the resulting printed string would be 'Hello world'.</p>

<p>How do I pass a pre-allocated string array and fill out each string within a function as shown above?</p>