log all the cases
[ghsmtp.git] / cdb-gen.cpp
blob0e447cefe4f896533540ef9b48b7f3ab3387b119
1 #include <iostream>
2 #include <string>
4 int main(int argc, char const* argv[])
6 std::string line;
7 while (std::getline(std::cin, line)) {
9 /* From cdb(1) man page, section Input/Output Format:
10 +klen,vlen:key->val\n
12 std::cout << "+" << line.length() << ",1:" << line << "->1\n";
14 std::cout << "\n";