Révision 2
Ajouté par Jacques LAFFONT il y a environ 4 ans
main.c | ||
---|---|---|
"$GPZDA,141914.00,01,02,2006,00,00*69",
|
||
0};
|
||
|
||
int trame_cmp(char * trame, char * type){
|
||
if (!strncmp(trame+1,type,strlen(type)))
|
||
return 1;
|
||
return 0;
|
||
}
|
||
|
||
//Fonction ? modifier !!!!!
|
||
void traitement(char * trame)
|
||
{
|
||
static int cpt=0;
|
||
cpt++;
|
||
if (trame_cmp(trame,"GPGGA"))
|
||
printf ("> %s\n",trame);
|
||
printf ("> %s\n",trame);
|
||
}
|
||
|
||
//Ajouter vos tests unitaires dans cette fonction.
|
Formats disponibles : Unified diff
Correction.