i am setting up function that needs to receive a pointer to a 2 dimensional char array. the setup is as follows:
i have the function declared in mud.h:
declare map:
call recursive function:
function header:
i get this syntax error:
anyone know how to properly do this?
i have the function declared in mud.h:
void plot_map args ( ( CHAR_DATA * ch, int vnum, int xcoord, int ycoord, int tier, int * plotted, char * map ) );declare map:
char *map[19][19];call recursive function:
plot_map ( ch, ch->in_room->vnum, 9, 9, 0, plotted, map );function header:
void plot_map ( CHAR_DATA * ch, int vnum, int xcoord, int ycoord, int tier, int * plotted, char * map )
{i get this syntax error:
Quote:
act_move.c:3057: warning: passing arg 7 of `plot_map' from incompatible pointer type
act_move.c:3057: warning: passing arg 7 of `plot_map' from incompatible pointer type
anyone know how to properly do this?