Révision 297
Ajouté par Pape Demba AMAR il y a presque 3 ans
main.c | ||
---|---|---|
|
||
float conv_longitude (char* long_sexa)
|
||
{
|
||
|
||
float conversion(char * chaine){ //Cette fonction convertie soit une latitude soit une longitude en degr?.
|
||
int cpt = 0;
|
||
while (chaine[cpt]!='\0'){
|
||
cpt++;
|
||
}
|
||
if (cpt == 9){
|
||
return conv_lattitude(chaine);
|
||
}
|
||
else if(cpt==10){
|
||
return conv_longitude(chaine);
|
||
}
|
||
else{
|
||
return 1000.0;
|
||
}
|
||
}
|
||
float long_dec=0;
|
||
float deg_long = decode_nombre(long_sexa,5);
|
||
int i;
|
Formats disponibles : Unified diff
unification des fonctions de conversion latitude et longitude. mais pas dz test