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

Function x2s

deps/memkind/src/jemalloc/src/malloc_io.c:328–337  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

326}
327
328static char *
329x2s(uintmax_t x, bool alt_form, bool uppercase, char *s, size_t *slen_p) {
330 s = u2s(x, 16, uppercase, s, slen_p);
331 if (alt_form) {
332 s -= 2;
333 (*slen_p) += 2;
334 memcpy(s, uppercase ? "0X" : "0x", 2);
335 }
336 return s;
337}
338
339size_t
340malloc_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