This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

itoa conversion...

Hi,

  We are using itoa function in CCS 3.3. while building, its shows itoa as undefined symbol.

 can someone tell us how to use itoa function with an example OR any function to do the same..

Thank you,

Jayaprakash

  • Hi Jayaprakash,

    AFAIK, itoa function is not supported in CCS3.3.

    An alternative to convert integer into string could be to use sprintf

    For this, though , you will require a buffer large enough to accomodate the contents of the string.

    AN example like this may help-

    int main()

    {

      int a = 100;

      char str[20];

      sprintf (str, "%d", a);

      printf ("\n%s", str);

      return 0;

    }

    Regards,

    Sid