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