fork download
  1. #include <stdio.h>
  2. #include <inttypes.h>
  3.  
  4. int main(void) {
  5. uint16_t adc = 23152;
  6. char codeRssi[20];
  7. snprintf(codeRssi, sizeof(codeRssi)/sizeof(char), "%" PRIu16, adc);
  8. printf("Wynik: [%s]\n", codeRssi);
  9. return 0;
  10. }
  11.  
Success #stdin #stdout 0s 9432KB
stdin
Standard input is empty
stdout
Wynik: [23152]