summaryrefslogtreecommitdiff
path: root/hiredis.c
diff options
context:
space:
mode:
Diffstat (limited to 'hiredis.c')
-rw-r--r--hiredis.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/hiredis.c b/hiredis.c
index dcb13a5..b254903 100644
--- a/hiredis.c
+++ b/hiredis.c
@@ -1257,6 +1257,15 @@ int __redisAppendCommand(redisContext *c, char *cmd, size_t len) {
return REDIS_OK;
}
+int redisAppendFormattedCommand(redisContext *c, char *format, size_t len) {
+
+ if (__redisAppendCommand(c, format, len) != REDIS_OK) {
+ return REDIS_ERR;
+ }
+
+ return REDIS_OK;
+}
+
int redisvAppendCommand(redisContext *c, const char *format, va_list ap) {
char *cmd;
int len;