From 8ff682cab5cadc1c2fd596b43e1a02a9a49c476f Mon Sep 17 00:00:00 2001 From: leclere Date: Wed, 7 Oct 2026 12:05:48 +0200 Subject: [PATCH] =?UTF-8?q?v=C3=A9rification=20de=20la=20premi=C3=A8re=20l?= =?UTF-8?q?ettre=20sur=20chercher=5Fmot?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- analyseur.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/analyseur.c b/analyseur.c index 1192fd0..50c085e 100644 --- a/analyseur.c +++ b/analyseur.c @@ -238,7 +238,7 @@ int est_mot_vide(const char *mot) int chercher_mot(Entree *table, int nb_entrees, const char *mot) { for (int i = 0; i < nb_entrees; i++) { - if (egales(table[i].mot, mot)) + if (table[i].mot[0] == mot[0] && egales(table[i].mot, mot)) return i; } return -1;