3 Replies Latest reply on Dec 21, 2014 8:29 AM by user_1377889

    weird behavour with sprintf

    mike.tamis

      using this line of code

         

      strcpy(output_buffer+output_counter,"Hello World\r\n");

         

      output_counter += 15;

         

      output_counter += sprintf(output_buffer+output_counter, "%d\r\n", 60);

         

      I should get an output of "Hello World\r\n60\r\n" but instead im getting an output of  "Hello World\r\n15536"