• Incorrect work of the sprintf function
    char str [4]; sprintf (str, "%.2x", 0x01);//Conversion of byte to the 2nd bit hexadecimal value I expect in str[0] 0 character, in str[1] 1 character, that is '0' and '1'. As a result function...
  • Float variables not working in sprintf
    I am using uVison4 Compiler and STM32F103 Device. I using sprintf then float variables not working properly. Please help me. float fvalue; char cTest[10]; memset(cTest,0x00,sizeof(cTest));...
  • atof() function problem + sprintf()
    I am using keil IDE for arm7 (LPC2138 by NXP) programming. Here is my code. >> #include <LPC213X.H> #include "Stdlib.h" #include "Serial.h" void initialize(void); int main () { float number; int...
  • sprintf() function behaving strange...
    Hi, I'm using uVision IDE V4.53.0.0 and the sprintf() function behaves strange... my piece of code: _disable_irq(); len = sprintf((char*)myBuf,"%+2.2fV %+1.3fA",9.13788,-0.004069); _enable_irq...
  • where does sprintf output go?
    I have searched the documentation for a good while and not been able to find the answer to the above. since similar may come up again a link to the answer, may be more helpful than just the answer....