The %s format specifier is to print a string. The elements in the r array are not strings.
They are bytes. Use %d, instead. Or, %02d to get 2 characters, with a leading 0 if the value is less than 10 (04, 08, 22).
The %s format specifier is to print a string. The elements in the r array are not strings.
They are bytes. Use %d, instead. Or, %02d to get 2 characters, with a leading 0 if the value is less than 10 (04, 08, 22).