diff options
author | Axel Etcheverry <euskadi31@gmail.com> | 2013-11-14 01:59:35 +0100 |
---|---|---|
committer | Matt Stancliff <matt@genges.com> | 2014-04-09 17:02:42 -0400 |
commit | 66192a0052ec3f9936099a4d2c5512b4b0d89bf0 (patch) | |
tree | 6b16c54137f6644fab9cb1b20d5168eaefda3156 /hiredis.c | |
parent | f20f5ad10264a10d41aa2a47c029fba71820d62a (diff) |
Add new redisAppendFormatedCommand with tests
Closes #202
Diffstat (limited to 'hiredis.c')
-rw-r--r-- | hiredis.c | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -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; |