MCPcopy Create free account
hub / github.com/axmolengine/axmol / strbuf_empty_length

Function strbuf_empty_length

3rdparty/lua/lua-cjson/strbuf.h:92–95  ·  view source on GitHub ↗

Return bytes remaining in the string buffer * Ensure there is space for a NULL terminator. */

Source from the content-addressed store, hash-verified

90/* Return bytes remaining in the string buffer
91 * Ensure there is space for a NULL terminator. */
92static inline int strbuf_empty_length(strbuf_t *s)
93{
94 return s->size - s->length - 1;
95}
96
97static inline void strbuf_ensure_empty_length(strbuf_t *s, int len)
98{

Callers 3

strbuf_append_stringFunction · 0.85
strbuf_append_fmt_retryFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected