| 375 | } |
| 376 | |
| 377 | static void strip_trailing_whitespace(char *str, size_t len) |
| 378 | { |
| 379 | size_t stripped_len = len; |
| 380 | while (stripped_len > 0 && cisspace(str[stripped_len-1])) |
| 381 | stripped_len--; |
| 382 | |
| 383 | str[stripped_len] = 0x00; |
| 384 | } |
| 385 | |
| 386 | static struct command_result *command_err_bcli_badjson(struct bitcoin_cli *bcli, |
| 387 | const char *errmsg) |
no test coverage detected