On 12/2/05, Sandeep <[EMAIL PROTECTED]> wrote:
>
> Hello i want to convert a long integer to character array in gcc
> compiler , how about achieving it?
>


If you're using C(99), you can use snprintf()

char converted[16];
snprintf(converted, 16, "%ld", long_int);

If using C++, take a look at std::ostringstream for a much more
flexible way to do this.

Regards,
Manish

Reply via email to