delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1997/08/12/11:52:53

From: bridge AT dial-up DOT net (Leonard Weincier)
Subject: bsearch problem
12 Aug 1997 11:52:53 -0700 :
Approved: cygnus DOT gnu-win32 AT cygnus DOT com
Distribution: cygnus
Message-ID: <Pine.GSO.3.95.970812181030.14221A-100000.cygnus.gnu-win32@mail3.dial-up.net>
Mime-Version: 1.0
Original-To: gnu-win32 AT cygnus DOT com
Original-Sender: owner-gnu-win32 AT cygnus DOT com

Hi All

There appears to be a problem in the implementation of bsearch. If you pass the bsearch function an array with only one element, it will bomb because of it's handling of the bounadary condition on the binary search. I looked at the implementation of bsear
ch under linux and it appears to be solid.

Has anyone else found this ?

TIA 
Len

-----------------------------------------------------------------------
Leonard Weincier                                      
email : <bridge AT icon DOT co DOT za>                          

-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019