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

Function addReplyStatusFormat

app/redis-6.2.6/src/networking.c:525–532  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

523}
524
525void addReplyStatusFormat(client *c, const char *fmt, ...) {
526 va_list ap;
527 va_start(ap,fmt);
528 sds s = sdscatvprintf(sdsempty(),fmt,ap);
529 va_end(ap);
530 addReplyStatusLength(c,s,sdslen(s));
531 sdsfree(s);
532}
533
534/* Sometimes we are forced to create a new reply node, and we can't append to
535 * the previous one, when that happens, we wanna try to trim the unused space

Callers 3

addReplyHelpFunction · 0.85
debugCommandFunction · 0.85

Calls 5

sdscatvprintfFunction · 0.85
sdsemptyFunction · 0.85
addReplyStatusLengthFunction · 0.85
sdslenFunction · 0.85
sdsfreeFunction · 0.85

Tested by

no test coverage detected