Wie Engineer schon sagte, sowas tut man nicht
Beispiel:
Code:// -------- Struktur ----------- typedef struct { int iInteger; char bWtlbrnft[6]; } MY_STRUC; // -------- deklaration ----------- static MY_STRUC sStruc; main() { // -------- so greift der main hin ----------- sStruc.iInteger = 24; sStruc.bWtlbrnft[0] = 12; myfunc((MY_STRUC*)&sStruc); } // -------- so greift die Funktion hin ----------- void myfunc(MY_STRUC* pPntr) { pPntr->iInteger = pPntr->bWtlbrnft[0]; }
Lesezeichen