The function reverse a char array in-place
| 1553 | |
| 1554 | // The function reverse a char array in-place |
| 1555 | static inline void reverse_char_buf(char* buf, int32_t len) { |
| 1556 | char temp; |
| 1557 | |
| 1558 | for (int32_t i = 0; i < len / 2; i++) { |
| 1559 | int32_t pos_swp = len - (1 + i); |
| 1560 | temp = buf[pos_swp]; |
| 1561 | buf[pos_swp] = buf[i]; |
| 1562 | buf[i] = temp; |
| 1563 | } |
| 1564 | } |
| 1565 | |
| 1566 | // Converts a double variable to binary |
| 1567 | FORCE_INLINE |
no outgoing calls
no test coverage detected