29 lines
525 B
C++
29 lines
525 B
C++
|
|
#include <cstring>
|
|
#include <iostream>
|
|
|
|
using std::strcmp;
|
|
#include "Foohash.H"
|
|
|
|
using std::cout;
|
|
using std::endl;
|
|
|
|
/*struct RouterOp {*/
|
|
//const char *txt;
|
|
//int op;
|
|
/*};*/
|
|
|
|
int main(int argc, char *argv[])
|
|
{
|
|
Foohash fh;
|
|
RouterOp *blub;
|
|
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;
|
|
|
|
if(argc) argv++;
|
|
}
|
|
// http://www.ibm.com/developerworks/linux/library/l-gperf/index.html#toggle
|