Révision 48
Ajouté par Awa Semou FAYE il y a environ 3 ans
main.c | ||
---|---|---|
#include <stdlib.h>
|
||
#include <strings.h>
|
||
#include "trame.h"
|
||
#define max 10
|
||
#define max 5
|
||
|
||
//Trames de tests ? modifier si n?cessaire.
|
||
char * trames[]= {"$GPGSV,3,2,10,15,03,077,,18,04,041,42,19,85,271,,20,08,214,*7C",
|
||
... | ... | |
int N=max,i;
|
||
int ok;
|
||
ok=0|1;
|
||
for (i=0;i<=N;i++)
|
||
for (i=0;i<N;i++)
|
||
{
|
||
if (trame[i+1]=type[i])
|
||
if (trame[i+1]==type[i])
|
||
{
|
||
ok=1;
|
||
|
||
... | ... | |
return ok;
|
||
}
|
||
|
||
/*int decode_int(char c)
|
||
int decode_int(char c)
|
||
{
|
||
int chiffre ;
|
||
if ( c <= '9' && c >='0' )
|
||
... | ... | |
}
|
||
return chiffre;
|
||
|
||
}*/
|
||
}
|
||
//Fonction ? modifier !!!!!
|
||
void traitement(char * trame)
|
||
{
|
Formats disponibles : Unified diff
modification fonction trame_cmp, int_decode