new newline needed after commands

This commit is contained in:
antirez 2010-05-18 17:13:21 +02:00
parent 4f6fc6dfb1
commit 60e85fb4f3

View File

@ -20,12 +20,12 @@ int main(void) {
freeReplyObject(reply); freeReplyObject(reply);
/* Set a key */ /* Set a key */
reply = redisCommand(fd,"SET %s %s\n", "foo", "hello world"); reply = redisCommand(fd,"SET %s %s", "foo", "hello world");
printf("SET: %s\n", reply->reply); printf("SET: %s\n", reply->reply);
freeReplyObject(reply); freeReplyObject(reply);
/* Set a key using binary safe API */ /* Set a key using binary safe API */
reply = redisCommand(fd,"SET %b %b\n", "bar", 3, "hello", 5); reply = redisCommand(fd,"SET %b %b", "bar", 3, "hello", 5);
printf("SET (binary API): %s\n", reply->reply); printf("SET (binary API): %s\n", reply->reply);
freeReplyObject(reply); freeReplyObject(reply);