| 267 | |
| 268 | |
| 269 | void printHex_op( uint32_t in, uint8_t op ) |
| 270 | { |
| 271 | // With an op of 1, the max number of characters is 6 + 1 for null |
| 272 | // e.g. "0xFFFF\0" |
| 273 | // op 2 and 4 require fewer characters (2+1 and 4+1 respectively) |
| 274 | char tmpStr[7]; |
| 275 | |
| 276 | // Convert number |
| 277 | hexToStr_op( in, tmpStr, op ); |
| 278 | |
| 279 | // Print number |
| 280 | Output_putstr( tmpStr ); |
| 281 | } |
| 282 |
no test coverage detected
searching dependent graphs…