error: incompatible type for argument 1 of ‘fwrite’ /usr/include/stdio.h:688: note: expected ‘const void * restrict’ but argument is of type ‘struct oseba’ make: *** [E1041080] Error 1
struct oseba{
char baza[100];
int telefonska;
char ime[10];
char priimek[20];
int dan;
int mesec;
int leto;
};
boys i need help! what is wrong?
---------------------------write-----------------------
FILE*file=fopen("fhfh.dat","wb");
if(file!=NULL)
{ fwrite(oseba1,sizeof(struct oseba),1,file);
fclose(file);
}