Possible Duplicate:
How to pass a multidimensional array to a function in C and C++
so I have char buffer[4][50]
I need to pass it to a method void SetBuffer(char **buffer)
or at least that's how i think it's suppose to be formatted.
so I do SetBuffer(buffer);
? In the method I need to set each element so
void SetBuffer(char **buffer)
{
strncpy(buffer[0], "something", 50);
strncpy(buffer[1], "something else", 50);
}
how can this be accomplished properly?