/*** ROBOT.H ***/ typedef struct _rob { ...data... } ROBOT, *PROBOT; /*** MAIN.C ***/ PROBOT robot[64]; // Global guiarglist.grid = &grid; guiarglist.robot = robot; /*** GUI.H ***/ struct guiarglst { PGRID grid; PROBOT *robot; /* <<< */ }; void gui_drawgrid(struct guiarglst *guiarglist); // Prototype /*** GUI.C ***/ void gui_drawgrid(struct guiarglst *guiarglist) { robotno=1; /* <<< */ static char firstrun=1; static int loops=0; static int oldnetwork=0; PGRID grid; PROBOT *robot; if(firstrun) { grid = guiarglist->grid; robot = guiarglist->robot; ... .. .