All pastes #478850 Raw Edit

Mine

public text v1 · immutable
·published 2007-05-09 12:06 UTC
rendered paste body
somewhere in cl_aircraft.c:
void blach (void) {
aircraft_t *aircraft;
[...]
MY_Function(aircraft);
}

// I cannot use void MY_Function(aircraft_t *pointer) here because cl_aliencont.{c|h}
// does not know aircraft_t struct because of order of headers inclusion
somewhere in cl_aliencont.h:
void MY_Function(void *pointer);

somewhere in cl_aliencont.c:
void MY_Function (void *pointer)
{
aircraft_t aircraft = (aircraft_t *)pointer;
}