3 Replies Latest reply on Sep 20, 2012 6:03 AM by user_27941315

    sprintf doesn't work, PSoC1

    alexander.kricke
      Hello,   is formatted write of data to string ("sprintf") supported by PSoc Designer 5.2 and PSoC1? Especially the "width"-options of "sprintf"? It seems not to work.  Which limitations exist concerning  %[flags][width][.precision][length]specifier?  Where do I find information about "stdio.h"?   Example:  char buffer[10]; void main() {      csprintf (buffer, "Preceding with blanks: %10d \n", 1977);        LCD_PrString(buffer);      // -> Preceding with blanks:       1977  while(1)   }   "%10d" is shown an the LCd but it is a format intruction.   Thanks for your help.  Alex