Hi,
A customer is having an issue with printing the decimal floating point format (%f) and the scientific notation format (%e) using the sprintf() function.
However, they do not have issues printing the signed decimal integer format (%d) or the string format (%s).
For example, this code:
sprintf((char *)outbuf, "int:%d, double:%f, double:%e, string:%s, end", 12345, 1.2345, 12.345678, "abcde");
Outputs this:
outbuf = "int:12345, double:, double:, string:abcde, end"
What could be a possible issue here and how can they print correctly?
For additional information, they are using CCS v8, GCC GNU v6.3.1(Linaro).
Best regards,
Mari




