• sprintf && struct
    Hi All, I have following struct: struct timedate{ unsigned char sec; // 00 to 59 unsigned char min; // 00 to 59 unsigned char hrs; // 00 to 23 unsigned char date; // 01 to 31 unsigned char...
  • 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
  • Percent symbol and sprintf() (BUG?)
    How do I print a percent sign with sprintf()?. I want to do something like this: sprintf(buf, "Value: %3d%%", value); According to ANSI C this should give "Value: 98%" or the like. But it seems...