MCPcopy Create free account
hub / github.com/ddnet/ddnet / byteval

Function byteval

src/base/str.cpp:659–669  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

657}
658
659static int byteval(const char *hex, unsigned char *dst)
660{
661 int v1 = hexval(hex[0]);
662 int v2 = hexval(hex[1]);
663
664 if(v1 < 0 || v2 < 0)
665 return 1;
666
667 *dst = v1 * 16 + v2;
668 return 0;
669}
670
671int str_hex_decode(void *dst, int dst_size, const char *src)
672{

Callers 1

str_hex_decodeFunction · 0.85

Calls 1

hexvalFunction · 0.85

Tested by

no test coverage detected