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:299–307  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

297}
298
299bool ptr_valid_batch_string(struct ptr_valid_batch *batch, const char *p)
300{
301 while (ptr_valid_batch(batch, p, 1, 1, false)) {
302 if (*p == '\0')
303 return true;
304 p++;
305 }
306 return false;
307}
308
309bool ptr_valid(const void *p, size_t alignment, size_t size, bool write)
310{

Callers 2

ptr_valid_stringFunction · 0.85
mainFunction · 0.85

Calls 1

ptr_valid_batchFunction · 0.70

Tested by 1

mainFunction · 0.68