MCPcopy Create free account
hub / github.com/bloomberg/comdb2 / stringify_fingerprint

Function stringify_fingerprint

cdb2api/cdb2api.c:6934–6945  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6932}
6933
6934static char *stringify_fingerprint(char *dst, uint8_t *val, int len)
6935{
6936 int i;
6937 char *ret = dst;
6938 char hex[] = "0123456789abcdef";
6939 for (i = 0; i != len; ++i) {
6940 *(dst++) = hex[(val[i] & 0xf0) >> 4];
6941 *(dst++) = hex[val[i] & 0x0f];
6942 }
6943 *dst = 0;
6944 return ret;
6945}
6946
6947static void *cdb2_invoke_callback(cdb2_hndl_tp *hndl, cdb2_event *e, int argc,
6948 ...)

Callers 1

cdb2_invoke_callbackFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected