Entraides et échanges autour de la technologie Scol - Informations and exchanges on the Scol technology
Vous pouvez changer la langue de l'interface une fois inscrit - You can change the language once registered
You are not logged in.
Pages: 1
hey,guys
why the fread function need callback?
w->SCgetsocket=SCgetsocket;
w->Mcutting=Mcutting;
w->MMechostr=MMechostr;
w->fread=fread;
w->Firstpack=Firstpack;
w->OBJcreate=OBJcreate;
w->OBJaddreflex=OBJaddreflex;
w->OBJbeginreflex=OBJbeginreflex;
w->OBJdel=OBJdel;
Offline
the scolCbMachine.h file
Offline
Humm
In C89 and Posix standards, fread is prototyped this :
size_t fread(void *ptr, size_t size, size_t nmemb, FILE *stream);
But, in the Scol machine structure (and only into this structure), fread is (re)"prototyped" :
int (*fread)(char* buf,int i,int j,FILE *f);
Offline
Pages: 1