From mboxrd@z Thu Jan 1 00:00:00 1970 From: Richard Wallman Subject: Re: ELKS port of Adventure - help needed :) Date: Wed, 11 Dec 2002 22:46:12 +0000 (GMT) Sender: linux-8086-owner@vger.kernel.org Message-ID: <200212112246.gBBMk95G010850@eddie.loc> References: <200212112222.gBBMMA5G007271@eddie.loc> Mime-Version: 1.0 Return-path: In-Reply-To: <200212112222.gBBMMA5G007271@eddie.loc> List-Id: Content-Type: TEXT/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Linux 8086 On 11 Dec, I wrote: {SNIP: a load of rubbish} Scratch all that, I did a quick test and bcc is fine. I blame tiredness. >:) Still getting -1 each time for the comparison in vocab.c though. I even tried "check=1" before the "check = strcmp(w, wc[mid].aword);" line, and it still comes up -1 each time. Just tried pasting the bit of C from the end of the libc code: -------------------------------------------------------------- int newcmp(d, s) const char *d; const char * s; { register char *s1=(char *)d, *s2=(char *)s, c1,c2; while((c1= *s1++) == (c2= *s2++) && c1 ); return c1 - c2; }; -------------------------------------------------------------- Put that in vocab.c, replace the reference in the "binary" function, and it all works smoothly (for that function at least). Looks like the only useful part of my last post was the suggestion to replace strcmp. There's a problem here somewhere, but I'm damned if I can find it right now. Yawn...time for bed... -- Richard Wallman http://www.murkygoth.uklinux.net/elks