Révision 130
Ajouté par Guillaume DAVID il y a environ 3 ans
branch/david_guillaume/sp4a12/main.c | ||
---|---|---|
|
||
printf ("> %s\n",trame);
|
||
}
|
||
|
||
int trame_cmp(char *trame, char *type)
|
||
{
|
||
int test=1;
|
||
int i;
|
||
|
||
for(i=0;i<=5;i++){
|
||
if(trame[i+1]!=type[i]){
|
||
test=0;
|
||
}
|
||
}
|
||
|
||
return test;
|
||
}
|
||
|
||
//Ajouter vos tests unitaires dans cette fonction.
|
||
void tests_unitaires(void){
|
||
... | ... | |
/*if (trame_cmp("$GPGGA suite chaine","GPGGA")!=1){
|
||
printf ("Erreur Test unitaire trame_cmp.\n");
|
||
exit(-1);
|
||
}*/
|
||
}*/
|
||
|
||
if(trame_cmp("$GPGGA suite chaine","GPGGA")!=1){
|
||
|
||
}
|
||
}
|
||
|
||
// Ne pas modifier cette fonction
|
Formats disponibles : Unified diff
Implantation fonction trame_cmp