[comp.sys.next] referenceOpen

mattson@ishin.ucsd.edu (Jim Mattson) (02/08/91)

The webster(3) man page claims that referenceOpen will currently accept one
of two arguments: "Webster-Dictionary" and "Webster-Thesaurus".  Using
"Webster-Dictionary" I have successfully been able to open the dictionary
and then retrieve records from it.  However, when I call

	referenceOpen("Webster-Thesaurus")

gdb shows:

Program generated(1): Memory access exception on address 0x0 (protection
failure).
0x5006ecc in strcmp ()
(gdb) where
#0  0x5006ecc in strcmp ()
#1 0x6290 in referenceOpen (bookName=(char *) 0x1400c "Webster-Thesaurus")
(webster.m line 1475) 
#2  0x36b2 in main () (lookup.m line 9)

The program is very simple (modified from the example in webster(3)):

#include <text/webster.h>

main()
{
        ReferenceBook *book;
        Definition *d;
        int exact = 1;

        book = referenceOpen("Webster-Thesaurus");
        dictionaryFoldSenses = 80;
        if(d = getDefinition("amphora", book, exact)) {
                putDefinition(d, 0);
                printf("\n");
                freeDefinition(d);
        }
}

Has anyone else seen this problem?  Is there a way around it?

--jim
-- 
	Internet: jmattson@ucsd.edu
	Bitnet:	jmattson@ucsd
	UUCP:	{ucbvax|rutgers|bellcore}!ucsd!jmattson