/** * testhf.c * A simple test of hash functions. We enter names on the command * line and see what they hash to.l */ #include "hashfun.h" #include int main (int argc, char *argv[]) { int i; // Look at the command line for (i = 1; i < argc; i++) { printf ("%s: %u\n", argv[i], hash(argv[i]) % 21); } // for return 0; } // main