[BACK]Return to bsearch.c CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / lib / libc / stdlib

Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.

Diff for /src/lib/libc/stdlib/bsearch.c between version 1.10 and 1.11

version 1.10, 1999/09/16 11:45:33 version 1.11, 1999/09/20 04:39:36
Line 78  bsearch(key, base0, nmemb, size, compar)
Line 78  bsearch(key, base0, nmemb, size, compar)
         _DIAGASSERT(key != NULL);          _DIAGASSERT(key != NULL);
         _DIAGASSERT(base0 != NULL);          _DIAGASSERT(base0 != NULL);
         _DIAGASSERT(compar != NULL);          _DIAGASSERT(compar != NULL);
 #ifdef _DIAGNOSTIC  
         if (key == NULL || base0 == NULL || compar == NULL) {  
                 errno = EFAULT;  
                 return (NULL);  
         }  
 #endif  
   
         for (lim = nmemb; lim != 0; lim >>= 1) {          for (lim = nmemb; lim != 0; lim >>= 1) {
                 p = base + (lim >> 1) * size;                  p = base + (lim >> 1) * size;

Legend:
Removed from v.1.10  
changed lines
  Added in v.1.11

CVSweb <webmaster@jp.NetBSD.org>