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

Function strip_trailing_whitespace

plugins/bcli.c:244–251  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

242}
243
244static void strip_trailing_whitespace(char *str, size_t len)
245{
246 size_t stripped_len = len;
247 while (stripped_len > 0 && cisspace(str[stripped_len-1]))
248 stripped_len--;
249
250 str[stripped_len] = 0x00;
251}
252
253static struct command_result *command_err(struct command *cmd,
254 struct bcli_result *res,

Callers 1

getrawblockbyheightFunction · 0.85

Calls 1

cisspaceFunction · 0.85

Tested by

no test coverage detected