Projet

Général

Profil

« Précédent | Suivant » 

Révision 212

Ajouté par Hamza MOUBTASSIME il y a presque 4 ans

avancement

Voir les différences:

branch/hamza/sp4a12/main.c
"$GPGSA,A,3,,03,,22,14,,01,,18,,,,3.9,3.4,1.9*39",
"$GPVTG,99.4,T,,M,0.4,N,0.7,K*57",
"$GPZDA,141914.00,01,02,2006,00,00*69",
0};
0};
int trame_cmp(char* a,char* b){
return 0;
}
int trame_cmp(char* trame,char*b){
int k=0;
int verif = 1;
int j;
while( b[k] != NULL){
k++;
}
for(j=0; j<k; j++){
if (trame[j+1] != b[j]){
verif = 0;
}
}
return verif;
}
//Fonction ? modifier !!!!!
void traitement(char * trame)
{
{
static int cpt=0;
cpt++;
if(trame_cmp(trame,"GPGGA"))
printf ("> %s\n",trame);
}
......
exit(-1);
}
}
void test_decode_int(void){
if(decode_int('a')==1){
printf("Erreur test unitaire test_decode\n");
exit(-1);
}
if(decode_int('0')==1){
printf("test unitaire test_decode\n");
exit(-1);
}
if(decode_int('0')!=1){
printf("Erreur test unitaire test_decode\n");
exit(-1);
}
if(decode_int('3')!=1){
printf("Erreur test unitaire test_decode\n");
exit(-1);
}
}
// Ne pas modifier cette fonction
int main(int argc,char ** argv)

Formats disponibles : Unified diff