MCPcopy Create free account
hub / github.com/F-Stack/f-stack / xo_buf_init

Function xo_buf_init

tools/libxo/libxo/xo_buf.h:37–43  ·  view source on GitHub ↗

* Initialize the contents of an xo_buffer_t. */

Source from the content-addressed store, hash-verified

35 * Initialize the contents of an xo_buffer_t.
36 */
37static inline void
38xo_buf_init (xo_buffer_t *xbp)
39{
40 xbp->xb_size = XO_BUFSIZ;
41 xbp->xb_bufp = xo_realloc(NULL, xbp->xb_size);
42 xbp->xb_curp = xbp->xb_bufp;
43}
44
45/*
46 * Reset the buffer to empty

Callers 7

cbor_createFunction · 0.85
csv_createFunction · 0.85
xo_init_handleFunction · 0.85
xo_format_colorsFunction · 0.85
xo_gettext_build_formatFunction · 0.85
xo_simplify_formatFunction · 0.85
xo_emit_warn_hcvFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected