int fd,fd1;
struct dati{
int fil1;
int fil2;
};
pthread_t tid;
struct dati dat;
poi ho fatto un errore prima nella funzione ci metto dat->fil1 nella read
codice:void *fun(struct dati *dat) { int j; char cbyte[20]; read(dat->fil1,&cbyte,20); }
int fd,fd1;
struct dati{
int fil1;
int fil2;
};
pthread_t tid;
struct dati dat;
poi ho fatto un errore prima nella funzione ci metto dat->fil1 nella read
codice:void *fun(struct dati *dat) { int j; char cbyte[20]; read(dat->fil1,&cbyte,20); }