Can you give me some observations on this code, please?

extern double DoubleIToD( int i) SECT_UI2;

double
DoubleIToD( int i)
{
    FlpCompDouble x;
    char buffer[32];

//that, it works fine
    StrIToA(buffer, i);
#ifdef USE_OPERATORS_AND_BUFFERED_FUNCTIONS
    FlpBufferAToF( &x.fd, buffer);
#else
    x.fd = FlpAToF(buffer);
#endif

//that, it creates a fatal exception
//or returns a bad value
//    x.fd = _d_itod(i);
    return x.d;
}

I use GCC and prc-tools 2.0.9x.
I work on that for 2 days without solution.
Should i add -lnfm in the compilation lines?
is _d_itod reconized by GCC?
Which system trap, i must use?

Thanks a lot for your answers.
Salut,
Marc.
__________________________________________________________
Faites un voeu et puis Voila ! www.voila.fr
Pendant tout l'�t�, gagnez une Ford Ka sur Voila Gratter ! 
http://cybergrattage.voila.fr/voila


--
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/tech/support/forums/

Reply via email to