MCPcopy Create free account
hub / github.com/InteractiveComputerGraphics/PositionBasedDynamics / nk_strfmt

Function nk_strfmt

extern/glfw/deps/nuklear.h:7132–7147  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7130}
7131#endif
7132NK_LIB int
7133nk_strfmt(char *buf, int buf_size, const char *fmt, va_list args)
7134{
7135 int result = -1;
7136 NK_ASSERT(buf);
7137 NK_ASSERT(buf_size);
7138 if (!buf || !buf_size || !fmt) return 0;
7139#ifdef NK_INCLUDE_STANDARD_IO
7140 result = NK_VSNPRINTF(buf, (nk_size)buf_size, fmt, args);
7141 result = (result >= buf_size) ? -1: result;
7142 buf[buf_size-1] = 0;
7143#else
7144 result = nk_vsnprintf(buf, buf_size, fmt, args);
7145#endif
7146 return result;
7147}
7148#endif
7149NK_API nk_hash
7150nk_murmur_hash(const void * key, int len, nk_hash seed)

Callers 5

nk_labelfv_coloredFunction · 0.85
nk_labelfv_colored_wrapFunction · 0.85
nk_labelfvFunction · 0.85
nk_labelfv_wrapFunction · 0.85
nk_tooltipfvFunction · 0.85

Calls 1

nk_vsnprintfFunction · 0.85

Tested by

no test coverage detected