#include <stdio.h>#include <stdlib.h>#include <string.h>#include <cupl.h>Go to the source code of this file.
Defines | |
| #define | TBL_SIZE 2048 |
Functions | |
| int | main (int argc, char **argv) |
|
|
Definition at line 6 of file ds-sample.c. Referenced by main(). |
|
||||||||||||
|
Definition at line 8 of file ds-sample.c. References cupl_hash_get(), and TBL_SIZE. 00008 {
00009 int h = -1;
00010
00011 if (argc < 2) {
00012 fprintf(stderr, "Usage: %s string\n", argv[0]);
00013 return 0;
00014 }
00015
00016 h = cupl_hash_get(argv[1], strlen(argv[1]), TBL_SIZE);
00017
00018 printf("hash: %d.\n", h);
00019
00020 return 1;
00021 }
|
1.3.9.1