Unix Programming - how to convert integer to string

This is Interesting: Free IT Magazines  
Home > Archive > Unix Programming > November 2005 > how to convert integer to string





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author how to convert integer to string
jessie

2005-11-02, 2:48 am

thanks


Rainer Temme

2005-11-02, 7:53 am

jessie wrote:
> thanks


Hi Jessie,

one question to start with ...
Does it appear to you, that you did provide enough
information in your question, to get a proper answer?

[ ] yes
[x] no

Regards ... Rainer

PS: In the case your question relates to the C language,
you might have a look on the sprintf() function.

Erik de Castro Lopo

2005-11-02, 7:53 am

Rainer Temme wrote:
>
> PS: In the case your question relates to the C language,
> you might have a look on the sprintf() function.


In case he was talking about Python:

"%d" % ival

or O'caml:

Printf.sprintf "%d" ival

or .....


Erik
--
+-----------------------------------------------------------+
Erik de Castro Lopo
+-----------------------------------------------------------+
Britain's War on Pigs.
http://www.frontpagemag.com/Article...le.asp?ID=19712
http://www.theage.com.au/news/World...0006056771.html
isvara2005@gmail.com

2005-11-02, 5:56 pm

You didn't specify a language. If you're using C++, look at Boost's
lexical_cast template.

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com