Reply with a bulk string, taking in input a C buffer pointer that is * assumed to be null-terminated. * * The function always returns REDISMODULE_OK. */
| 1644 | * |
| 1645 | * The function always returns REDISMODULE_OK. */ |
| 1646 | int RM_ReplyWithCString(RedisModuleCtx *ctx, const char *buf) { |
| 1647 | client *c = moduleGetReplyClient(ctx); |
| 1648 | if (c == NULL) return REDISMODULE_OK; |
| 1649 | addReplyBulkCString(c,(char*)buf); |
| 1650 | return REDISMODULE_OK; |
| 1651 | } |
| 1652 | |
| 1653 | /* Reply with a bulk string, taking in input a RedisModuleString object. |
| 1654 | * |
nothing calls this directly
no test coverage detected