This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
RE: ltoa, itoa, ultoa in gcc
- From: "Rupert Wood" <me at rupey dot net>
- To: "'Aaron Case'" <aaron dot case at dynazign dot com>
- Cc: <gcc-help at gcc dot gnu dot org>
- Date: Fri, 12 Sep 2003 19:06:52 +0100
- Subject: RE: ltoa, itoa, ultoa in gcc
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.