/webdis.c

http://github.com/nicolasff/webdis · C · 20 lines · 13 code · 7 blank · 0 comment · 2 complexity · 3993885e6628a2d3fccf996af9243fb0 MD5 · raw file

  1. #include "server.h"
  2. #include <stdlib.h>
  3. int
  4. main(int argc, char *argv[]) {
  5. struct server *s;
  6. if(argc > 1) {
  7. s = server_new(argv[1]);
  8. } else {
  9. s = server_new("webdis.json");
  10. }
  11. server_start(s);
  12. return EXIT_SUCCESS;
  13. }