Hello
A few stuff you can check:
- Did you include stdio.h at the beginning of the source file where you tried to use sprintf?
When using function with variable number of argument you MUST have a prototype
for the called function
- Are you using the appropriate compiler option?
Make sure you are not using the option -D__NO_FLOAT__ to build your code.
If this option is activated, you did specify you do not want floating point support in your application.
You have to re-create your application WITH floating point support.
- Are you using the appropriate library?
Make sure you are linking with the appropriate ANSI library.
The file {Install}\lib\hc12c\readme.txt describes which library should be used depending
on the memory model and floating point format you are using.
- Is the destination sting a local variable or a global one? Is it big enough?
- Did you define enough stack?
You may want to increase stack size and check whether this makes a difference.
CrasyCat