[Warning] passing arg 4 of `qsort' from incompatible pointer type
Voici mon qsort:
Je ne comprend pas le warning
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7 void ajout(char dico[LONGMOT][MAXMOTS],char *mot,short nb_mot) { //Copie du nouveau mot dans le tableau strcpy(dico[nb_mot],mot); //Tri en mémoire du tableau dico qsort((char**)dico,nb_mot,LONGMOT,strcmp); }![]()
Partager