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

Function ptr_valid_batch_string

ccan/ccan/ptr_valid/ptr_valid.c:313–321  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

311}
312
313bool ptr_valid_batch_string(struct ptr_valid_batch *batch, const char *p)
314{
315 while (ptr_valid_batch(batch, p, 1, 1, false)) {
316 if (*p == '\0')
317 return true;
318 p++;
319 }
320 return false;
321}
322
323bool ptr_valid(const void *p, size_t alignment, size_t size, bool write)
324{

Callers 2

ptr_valid_stringFunction · 0.85
mainFunction · 0.85

Calls 1

ptr_valid_batchFunction · 0.70

Tested by 1

mainFunction · 0.68