aboutsummaryrefslogtreecommitdiff
path: root/6.1/key.h
diff options
context:
space:
mode:
Diffstat (limited to '6.1/key.h')
-rw-r--r--6.1/key.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/6.1/key.h b/6.1/key.h
new file mode 100644
index 0000000..1cba74e
--- /dev/null
+++ b/6.1/key.h
@@ -0,0 +1,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);