Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
bgColor#ccccff
int i;
rsize_t count = 0;
errno_t err;

for (i = 0; i < 9; ++i) {
  if ((err = sprintf_m(buf + count, "%02x ", &count,
                        ((u8 *)&slreg_num)[i]));
  if (err != 0) {
    /* handle print error */
  }
}
if ((err = sprintf_m(buf + count, "%02x ", &count,
                      ((u8 *)&slreg_num)[i]);
if )(err != 0) {
  /* handle print error */
}

...