Révision 367
Ajouté par Orlani RIVERA il y a presque 3 ans
branch/RIVERA_Orlani/sp4a12/main.c | ||
---|---|---|
}
|
||
}
|
||
}
|
||
}
|
||
}
|
||
|
||
void decode_int(char c)
|
||
{
|
||
int decode;
|
||
if((c<'9')&&(c>='0'))
|
||
{
|
||
decode = c - 48;
|
||
}
|
||
else
|
||
{
|
||
decode = -1;
|
||
}
|
||
return decode;
|
||
}
|
||
|
||
//Fonction ? modifier !!!!!
|
||
void traitement(char * trame)
|
||
{
|
||
... | ... | |
printf("Erreur Test unitaire trame_cmp.\n");
|
||
exit(-1);
|
||
}
|
||
*/
|
||
if (decode_int(5)!=5){
|
||
printf("Erreur Test unitaire decode_int.\n");
|
||
exit(-1);
|
||
*/
|
||
|
||
}
|
||
|
||
// Ne pas modifier cette fonction
|
Formats disponibles : Unified diff
Réponse de la question 6 du TP1.