Here's an example:
#define ROWS 10
#define COLUMNS 10
char table_[ROWS][COLUMNS];//ROWS AND COLUMNS are constants
void op_table_(char table_[ROWS][COLUMNS], int rows, int columns)
{
for(int i=0;i<rows;i++)
for(int j=0;j<columns;j++)
table_[i][j]=0;
}
int main(int argc, char **argv)
{
op_table_(table_, ROWS, COLUMNS);
}
The rows and columns parameters can obviously be left off and substituted with ROWS and COLUMNS in the function body. To make the function more general you code do something like:
void op_table_(void *table_, int rows, int columns)
{
for(int i=0;i<rows;i++)
for(int j=0;j<columns;j++)
*(((char *)table_) + (columns * i) + j) = -1;
}