• 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! 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 ()
    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()
    I am using SPRINTF() function and it increase the code by 2.3K. Is there any method to reduce the code size. Thanks, Mashood
  • Error while using 'sprintf'
    Hi, I have added the library, stdio.h and written a piece of code as : int TempVal; char w[10]; TempMeas = 25.56; TempVal = sprintf(w,"%f",TempMeas); I am geeting following error while...