3 Replies Latest reply on Mar 11, 2016 2:09 AM by user_78878863

    What a format for sprintf need to use for print array?

    chaplin.u_1533771

      I want to print array of this structure : 

         

      typedef struct
      {
          uint32 time;
          uint32 date;
          uint32 dayOfWeek;
          uint32 status;
      }Timer_DATE_TIME;

         

      What a format for sprintf need to use ?

         

      sprintf(stringBuffer, "%??\r\n",  timeData[i] );
      UART_UartPutString(stringBuffer);