Révision 196
Ajouté par nibenmbare il y a presque 4 ans
main.c | ||
---|---|---|
"$GPZDA,141914.00,01,02,2006,00,00*69",
|
||
0};
|
||
|
||
int trame_cmp(char* a,char* b){
|
||
return 0;
|
||
int trame_cmp(char* trame,char* type){
|
||
int i,j=6,resultat;
|
||
for(i=0;i<j;i++)
|
||
{
|
||
if (trame[i+1] != type[i])
|
||
{
|
||
resultat = 0;
|
||
}
|
||
else
|
||
{
|
||
resultat = 1;
|
||
}
|
||
return resultat;
|
||
}
|
||
}
|
||
|
||
//Fonction ? modifier !!!!!
|
||
... | ... | |
|
||
//Ajouter vos tests unitaires dans cette fonction.
|
||
void tests_unitaires(void){
|
||
/*if (5!=5){
|
||
if (5!=5){
|
||
printf ("Erreur Test unitaire basique.\n");
|
||
exit(-1);
|
||
}
|
||
... | ... | |
if (trame_cmp("$APRMC...", "GPGGA")!=0){
|
||
printf ("Erreur Test unitaire trame_cmp.\n");
|
||
exit(-1);
|
||
}*/
|
||
}
|
||
}
|
||
|
||
// Ne pas modifier cette fonction
|
Formats disponibles : Unified diff