Projet

Général

Profil

« Précédent | Suivant » 

Révision 150

Ajouté par anclaud il y a environ 4 ans

Question 4 : implémentation de la fonction trame_cmp()

Voir les différences:

main.c
exit(-1);
}*/
}
// Fonction trame_cmp
int trame_cmp(char * trame, char * type)
{
int i = 0, j = 0, resultat = 1;
while(type[i] != '\0')
{
i++;
}
while(j<i)
{
if (trame[j] != type[j])
{
resultat = 0;
}
j++;
}
return resultat;
}
// Ne pas modifier cette fonction
int main(int argc,char ** argv)

Formats disponibles : Unified diff