This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

sprintf outup is "???"

All,

I've used sprintf with no problems many times. But in my current program when I try and print out a floating point number I just get question marks.

sprintf(buffer, "%f", 4.1);

After running that line, buffer contains the string: "???"

Is there maybe a compiler option that is disabling floating point?

Thanks,
Matt

Parents
  • The unique thing about this card is that it talks to the CP2200 Ethernet chip and I have used the Silicon Labs TCP-IP Configuration wizard and included:

    mn_stack_bank_038.lib
    mn_stack_common_038.lib
    mn_callback.c
    mn_vars.c

    When I add these to a test project I get it to fail in the same way.

    Is there something in those library files overwriting how sprintf works?

Reply
  • The unique thing about this card is that it talks to the CP2200 Ethernet chip and I have used the Silicon Labs TCP-IP Configuration wizard and included:

    mn_stack_bank_038.lib
    mn_stack_common_038.lib
    mn_callback.c
    mn_vars.c

    When I add these to a test project I get it to fail in the same way.

    Is there something in those library files overwriting how sprintf works?

Children