about summary refs log tree commit diff stats
path: root/src/server/main.cpp
blob: e04a1cfb850cd8de0ab9001b6309f803aaf50a5d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#include <cstdint>
#include <cstdio>
#include <stdexcept>
#include <string>

#include "hashtable.h"

int main(int argc, char* argv[])
{
    if (argc != 2) {
        std::printf("One argument required");
        return 1;
    }

    uint32_t size;
    try {
        size = std::stoi(std::string(argv[1]));
    } catch (const std::invalid_argument& e) {
        std::printf("Invalid argument");
        return 1;
    }


    return 0;
}