c5b2cb7
1 2 3 4 5 6 7 8 9 10 11 12 13
#ifndef KEY_H #define NKEYS (sizeof(keytab) / sizeof(keytab[0])) struct key { const char *word; int count; }; #define KEY_H #endif int bsearch(char *word, struct key tab[], int n);