Path: ...!feeds.phibee-telecom.net!news.mixmin.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Malcolm McLean Newsgroups: comp.lang.c Subject: Re: Good hash for pointers Date: Fri, 24 May 2024 00:43:59 +0100 Organization: A noiseless patient Spider Lines: 15 Message-ID: References: <86v834i1o9.fsf@linuxsc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Fri, 24 May 2024 01:43:59 +0200 (CEST) Injection-Info: dont-email.me; posting-host="438aee3945dcdba991233edefd290899"; logging-data="2090135"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18SMszZ/j5YsPFpwhkMlQMGcHxEf2UycQ0=" User-Agent: Mozilla Thunderbird Cancel-Lock: sha1:57xEwrKUsq149PdBOy//IJMPXSM= Content-Language: en-GB In-Reply-To: <86v834i1o9.fsf@linuxsc.com> Bytes: 1473 On 23/05/2024 23:49, Tim Rentsch wrote: > Malcolm McLean writes: > >> What is a good hash function for pointers to use in portable >> ANSI C? > > I have a preliminary question. Do you really mean ANSI C, or > is C99 acceptable? > C89 is better. But the pass has been sold. -- Check out Basic Algorithms and my other books: https://www.lulu.com/spotlight/bgy1mm