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.

sprintf and snprintf functionality in CCS

I am using Code Composer Studio  Version: 6.1.0.00104  with Tiva Lauchpad. I have integrated snprintf and sprintf to my code and tested for performance.  Both functions work perfectly for integer conversions although none return when converting a float value. 
I have tested my code with other compilers e.g. GCC and it works fine.  What is the solution for this problem?

 snprintf(buffer3,4,"%d",10);  // Returns

 sprintf(buffer3,"%d",10); // Returns

 snprintf(buffer3,5,"%.2f",7.85); // doesn't return

sprintf(buffer3,"%.2f",7.85); // doesn't return

Thank you for your opinion.