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

Function zzlStrtod

src/t_zset.cpp:721–728  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

719 *----------------------------------------------------------------------------*/
720
721double zzlStrtod(unsigned char *vstr, unsigned int vlen) {
722 char buf[128];
723 if (vlen > sizeof(buf))
724 vlen = sizeof(buf);
725 memcpy(buf,vstr,vlen);
726 buf[vlen] = '\0';
727 return strtod(buf,NULL);
728 }
729
730double zzlGetScore(unsigned char *sptr) {
731 unsigned char *vstr;

Callers 3

zzlGetScoreFunction · 0.85
zsetTypeRandomElementFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected