Révision 150
Ajouté par anclaud il y a environ 4 ans
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
Question 4 : implémentation de la fonction trame_cmp()