...
Code Block | ||
---|---|---|
| ||
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 */ } |
...