void foobarCommand(client *c) { printf("%s",c->argv[1]->ptr); /* Do something with the argument. */ addReply(c,shared.ok); /* Reply something to the client. */ }