X-Authentication-Warning: delorie.com: mail set sender to djgpp-workers-bounces using -f Date: Tue, 20 Jan 2004 11:26:07 -0500 Message-Id: <200401201626.i0KGQ7d8026812@envy.delorie.com> From: DJ Delorie To: djgpp-workers AT delorie DOT com In-reply-to: (message from Esa A E Peuha on Tue, 20 Jan 2004 11:57:20 +0200 (EET)) Subject: Re: Patch for bsearch References: Reply-To: djgpp-workers AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp-workers AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk One major problems with this. "void" has no size, so you can't do pointer arithmetic with it. Any void* must be cast to a pointer to non-void to do pointer arithmetic. I'm also not a big fan of "NULL" in general, but it's OK in this case. In general, NULL is *not* the same as a literal zero.