sic/src/testfoohash.cc

32 lines
562 B
C++

#include <cstring>
#include <iostream>
using std::strcmp;
#include "Foohash.H"
using std::cout;
using std::endl;
/*struct RouterOp {*/
//const char *name;
//int op;
/*};*/
int main(int argc, char *argv[])
{
Foohash fh;
const RouterOp *blub;
blub = fh.in_word_set("/static" , sizeof("/static")-1);
if(blub)
cout << "found! : "
<< blub->name
<< " ,op:"
<< blub->op
<< endl;
else
cout << "not found stuff!" << endl;
if(argc) argv++;
}
// http://www.ibm.com/developerworks/linux/library/l-gperf/index.html#toggle