sic/src/testfoohash.cc

29 lines
525 B
C++
Raw Normal View History

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