Bonjour,

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
 
 struct  param                                 
            { 
             int indexDebut;
             int indexFin;
             int tab[MAXTAB];
             } arg;   
 
 
pere= pthread_create (&thread, NULL, *fct, &arg);   
                    if (pere < 0)                                            
                                {
                                 perror("Creation du thread"); 
                                 exit(EXIT_FAILURE); 
                                }
ma question : est ce juste de faire & arg ? en mettant (void *) arg il m'affiche : cannot convert to a pointer type
une idée , merci de partager