Hi, i'm trying to use a struct field on a function (by reference). i will show a example:
Struct declaration:
function:Code:typedef struct{ char teste1[3+1]; char teste2[4+1]; }struct2;
calling:Code:void TrataStruct(char* parametro) { printf("%s",parametro); }
error:Code:TrataStruct(&structTeste.teste1);
error C2664: 'TrataStruct' : cannot convert parameter 1 from 'char (*)[4]' to 'char'.
How i make it works?
thx.