RE: ltoa, itoa, ultoa in gcc

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Aaron Case wrote: 

> Do have to write these functions myself or is there something
> supported by GCC that will suffice??

(Fairly obviously) If you're using a common radix such as 10 or 16 then you
can get away with

    char buffer[16];
    snprintf(buffer, 16, "%ld", l);

or similar.

If you're not, and don't want to start from scratch, then get hold of MS's
runtime source from your install CD and have a look how they implemented it
:-)

Rup.


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux