MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / x2s

Function x2s

deps/jemalloc/src/malloc_io.c:315–324  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

313}
314
315static char *
316x2s(uintmax_t x, bool alt_form, bool uppercase, char *s, size_t *slen_p) {
317 s = u2s(x, 16, uppercase, s, slen_p);
318 if (alt_form) {
319 s -= 2;
320 (*slen_p) += 2;
321 memcpy(s, uppercase ? "0X" : "0x", 2);
322 }
323 return s;
324}
325
326size_t
327malloc_vsnprintf(char *str, size_t size, const char *format, va_list ap) {

Callers 1

malloc_io.cFile · 0.70

Calls 1

u2sFunction · 0.70

Tested by

no test coverage detected