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

Function RM_ReplyWithLongDouble

app/redis-6.2.6/src/module.c:1729–1734  ·  view source on GitHub ↗

Send a string reply obtained converting the long double 'ld' into a bulk * string. This function is basically equivalent to converting a long double * into a string into a C buffer, and then calling the function * RedisModule_ReplyWithStringBuffer() with the buffer and length. * The double string uses human readable formatting (see * `addReplyHumanLongDouble` in networking.c). * * The funct

Source from the content-addressed store, hash-verified

1727 *
1728 * The function always returns REDISMODULE_OK. */
1729int RM_ReplyWithLongDouble(RedisModuleCtx *ctx, long double ld) {
1730 client *c = moduleGetReplyClient(ctx);
1731 if (c == NULL) return REDISMODULE_OK;
1732 addReplyHumanLongDouble(c, ld);
1733 return REDISMODULE_OK;
1734}
1735
1736/* --------------------------------------------------------------------------
1737 * ## Commands replication API

Callers

nothing calls this directly

Calls 2

moduleGetReplyClientFunction · 0.85
addReplyHumanLongDoubleFunction · 0.85

Tested by

no test coverage detected