• sprintf causing a hardfault exception
    Had to add some data logging in a hurry to diagnose an issue. A function is passed a pointer to data that is then used to assemble a readable string that's then stored on a SD card the RTOS task...
  • sprintf error...?
    I've noticed that sprintf seems to round the whole number part of doubles incorrectly. The below code loads string 's' with a value that seems to be rounded down to the closest 100 Hz. This causes my...
  • sprintf ()
    Hello! Some time ago I had a problem with sprintf(), it just didn't change the string variable as it should have. The problem somehow vanished, and I had no time to investigate further... Now I...
  • sprintf
    Hello! I am trying to use sprintf, but get no result (C51, version 5.20). char xdata command [80], i=100; strcpy (command, "Hello!"); // now command contains "Hello!" sprintf (command, "Test %d...
  • SPRINTF()
    I am using SPRINTF() function and it increase the code by 2.3K. Is there any method to reduce the code size. Thanks, Mashood