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

Function test_read

cli/test/run-remove-hint.c:61–67  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

59static size_t response_off;
60
61ssize_t test_read(int fd UNUSED, void *buf, size_t len)
62{
63 if (len > strlen(response + response_off))
64 len = strlen(response + response_off);
65 memcpy(buf, response + response_off, len);
66 return len;
67}
68
69static char *output;
70

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected