MCPcopy Create free account
hub / github.com/ElementsProject/lightning / strip_trailing_whitespace

Function strip_trailing_whitespace

plugins/bcli.c:377–384  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

375}
376
377static 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
386static struct command_result *command_err_bcli_badjson(struct bitcoin_cli *bcli,
387 const char *errmsg)

Callers 2

process_getrawblockFunction · 0.85
process_getblockhashFunction · 0.85

Calls 1

cisspaceFunction · 0.85

Tested by

no test coverage detected