MCPcopy Create free account
hub / github.com/F-Stack/f-stack / zzlStrtod

Function zzlStrtod

app/redis-6.2.6/src/t_zset.c: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 1

memcpyFunction · 0.50

Tested by

no test coverage detected