you can use sprintf:

int x = 999;
char szTest [8];

sprintf (szTest, "%d", x);

HTH

----- Original Message -----
From: "Rebs Guarina" <[EMAIL PROTECTED]>
To: "Philippine Linux Users Group Mailing List" <[EMAIL PROTECTED]>;
"Philippine Linux Newbies Mailing List" <[EMAIL PROTECTED]>
Sent: Tuesday, July 27, 2004 12:33 PM
Subject: [plug] itoa replacement in gcc.....


> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> hi guys,
>
> is there an equivalent for the function itoa (which converts an integer
> to string) in gcc?
>
> - --
> "I'm always a newbie. I wouldn't learn a damn thing if I were not."
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.2.4 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>
> iD8DBQFBBdsbH28iJoWp+T4RAuP9AJ9PNGcawzbdeEB+W51+7ho+GOm3xACghPpr
> afneAXP4sCmqdtAy3tbuoL0=
> =2P9b
> -----END PGP SIGNATURE-----
> --
> Philippine Linux Users' Group (PLUG) Mailing List
> [EMAIL PROTECTED] (#PLUG @ irc.free.net.ph)
> Official Website: http://plug.linux.org.ph
> Searchable Archives: http://marc.free.net.ph
> .
> To leave, go to http://lists.q-linux.com/mailman/listinfo/plug
> .
> Are you a Linux newbie? To join the newbie list, go to
> http://lists.q-linux.com/mailman/listinfo/ph-linux-newbie

--
Philippine Linux Users' Group (PLUG) Mailing List
[EMAIL PROTECTED] (#PLUG @ irc.free.net.ph)
Official Website: http://plug.linux.org.ph
Searchable Archives: http://marc.free.net.ph
.
To leave, go to http://lists.q-linux.com/mailman/listinfo/plug
.
Are you a Linux newbie? To join the newbie list, go to
http://lists.q-linux.com/mailman/listinfo/ph-linux-newbie

Reply via email to