Does anyone know a good way to do it? I've heard of itoa(), but it's non-standard and isn't included by default with the GCC compiler. If you believe that's the best way, how to I get my hands on the function? Ideas?

HUGE EDIT: I made a stupid mistake and wrote "String to Integer" on the title. Could a mod fix that for me, perhaps? I meant to say "Integer to String".

Recommended Answers

All 2 Replies

Take a look at the function sprintf()

commented: it solved my problem +1

Take a look at the function sprintf()

That does it. Thank you very much!

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, learning, and sharing knowledge.