| 213 | |
| 214 | |
| 215 | void revsStr( char* in ) |
| 216 | { |
| 217 | // Iterators |
| 218 | int i, j; |
| 219 | |
| 220 | // Temp storage |
| 221 | char c; |
| 222 | |
| 223 | // Loop through the string, and reverse the order of the characters |
| 224 | for ( i = 0, j = lenStr( in ) - 1; i < j; i++, j-- ) |
| 225 | { |
| 226 | c = in[i]; |
| 227 | in[i] = in[j]; |
| 228 | in[j] = c; |
| 229 | } |
| 230 | } |
| 231 | |
| 232 | |
| 233 | void hexToStr_op( uint32_t in, char* out, uint8_t op ) |
no test coverage detected
searching dependent graphs…