Skip to main content
idrissmc
Associate III
Jul 9, 2019 9:35 AM UTC
Solved

Convert int to string

Hi everyone,

I want to convert an integer to string on CubeIDE, how can I do it ?

thanks

This topic has been closed for replies.
Tesla DeLorean
Tesla DeLoreanBest answer
Guru
Jul 9, 2019 12:05 PM UTC

The C library function itoa() should perform the task.​

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..

4 replies

waclawek.jan
Super User
Jul 9, 2019 9:38 AM UTC

Using sprintf()?

JW

idrissmc
idrissmcAuthor
Associate III
Jul 9, 2019 9:41 AM UTC

It doen’t work

Piranha
Principal III
Jul 9, 2019 10:49 AM UTC

Advice how to progress faster and not pollute forums - learn C programming first and then come and ask non-trivial and ST product specific questions!

https://www.tutorialspoint.com/cprogramming/

https://www.cprogramming.com/tutorial/c-tutorial.html

Tesla DeLorean
Tesla DeLoreanBest answer
Guru
Jul 9, 2019 12:05 PM UTC

The C library function itoa() should perform the task.​

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..