cette partie de programme bug a l'endroit rose
pouvez vous m'éclairer svp.
merci d'avance .
bool cmp(char* a,char b[])
{
int boucle;
unsigned int taillea;
unsigned int tailleb;
tailleb = strlen((char*)b);
taillea = strlen(a);
printf("%d %d",taillea,tailleb);
if (taillea > tailleb)
return false;
for (boucle=0;boucle<taillea;boucle++)
if ((char)a[boucle]!=(char)b[boucle])
return false;
printf("vrai");
return true;
}
void Rechercher()
{
char* MotCle;
int Index = 0;
printf("Saisir un mot clef\n");
scanf("%s",&MotCle);
while ((Index<Max ) && (repertoire[Index].fixe[0]!='$'))
{if (cmp(MotCle , repertoire[Index].nom) ||
cmp(MotCle, repertoire[Index].prenom) ||
cmp(MotCle , repertoire[Index].age) ||
cmp(MotCle , repertoire[Index].fixe) ||
cmp(MotCle , repertoire[Index].portable) ||
cmp(MotCle , repertoire[Index].add.num) ||
cmp(MotCle , repertoire[Index].add.code) ||
cmp(MotCle , repertoire[Index].add.rue) ||
cmp(MotCle , repertoire[Index].add.ville) ||
cmp(MotCle , repertoire[Index].add.typerue) ||
cmp(MotCle , repertoire[Index].add.pays))
AfficherClient(Index);
Index++;}
}