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

Function rbuf_cleanup

ccan/ccan/rbuf/rbuf.h:170–173  ·  view source on GitHub ↗

* rbuf_cleanup - reset rbuf, return buffer for freeing. * @rbuf: the struct rbuf * * The rbuf will be empty after this, and crash if you try to use it. * You can rbuf_init() it again, however. * * Example: * free(rbuf_cleanup(&in)); */

Source from the content-addressed store, hash-verified

168 * free(rbuf_cleanup(&in));
169 */
170static inline char *rbuf_cleanup(struct rbuf *rbuf)
171{
172 return membuf_cleanup(&rbuf->m);
173}
174#endif /* CCAN_RBUF_H */

Callers 4

mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85

Calls

no outgoing calls

Tested by 4

mainFunction · 0.68
mainFunction · 0.68
mainFunction · 0.68
mainFunction · 0.68