Révision 84
Ajouté par Hamza MOUBTASSIME il y a environ 3 ans
branch/moubtassime/sp4a12/main.c | ||
---|---|---|
int trame_cmp(char * trame , char * type) {
|
||
|
||
int i,n;
|
||
int resultat=1;
|
||
|
||
while ( type[n] != '/0'){
|
||
n++;
|
||
}
|
||
|
||
for ( i=1;i<n;i++) {
|
||
if ( trame[i] != type[i]){
|
||
return("0");
|
||
resultat=0;
|
||
}
|
||
}
|
||
return("1");
|
||
|
||
return(resultat);
|
||
|
||
}
|
||
|
||
|
||
... | ... | |
}
|
||
}
|
||
|
||
int decode_int( char c) {
|
||
|
||
int n;
|
||
n=(int)c;
|
||
return(n);
|
||
|
||
}
|
||
|
||
|
||
// Ne pas modifier cette fonction
|
||
int main(int argc,char ** argv)
|
Formats disponibles : Unified diff
tpsp1a q4