diff options
Diffstat (limited to 'man3/hsearch.3')
-rw-r--r-- | man3/hsearch.3 | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/man3/hsearch.3 b/man3/hsearch.3 index dfd7787c7..422be88a9 100644 --- a/man3/hsearch.3 +++ b/man3/hsearch.3 @@ -307,22 +307,22 @@ some of them. #include <search.h> #include <stdio.h> #include <stdlib.h> - +\& static char *data[] = { "alpha", "bravo", "charlie", "delta", "echo", "foxtrot", "golf", "hotel", "india", "juliet", "kilo", "lima", "mike", "november", "oscar", "papa", "quebec", "romeo", "sierra", "tango", "uniform", "victor", "whisky", "x\-ray", "yankee", "zulu" }; - +\& int main(void) { ENTRY e; ENTRY *ep; - +\& hcreate(30); - +\& for (size_t i = 0; i < 24; i++) { e.key = data[i]; /* data is just an integer, instead of a @@ -335,7 +335,7 @@ main(void) exit(EXIT_FAILURE); } } - +\& for (size_t i = 22; i < 26; i++) { /* print two entries from the table, and show that two are not in the table */ |