1/*
2 * This program is copyright Alec Muffett 1993. The author disclaims all
3 * responsibility or liability with respect to it's usage or its effect
4 * upon hardware or computer systems, and maintains copyright as set out
5 * in the "LICENCE" document which accompanies distributions of Crack v4.0
6 * and upwards.
7 */
8
9#include "packer.h"
10
11int
12main ()
13{
14    int32 i;
15    PWDICT *pwp;
16    char buffer[STRINGSIZE];
17
18    if (!(pwp = PWOpen (CRACKLIB_DICTPATH, "r")))
19    {
20	perror ("PWOpen");
21	return (-1);
22    }
23
24    printf("enter dictionary words, one per line...\n");
25
26    while (fgets (buffer, STRINGSIZE, stdin))
27    {
28    	int32 i;
29
30	Chop(buffer);
31	i = FindPW(pwp, buffer);
32	printf ("%s: %lu%s\n", buffer, i, (i==PW_WORDS(pwp) ? " **** NOT FOUND ****" : ""));
33    }
34
35    return (0);
36}
37