home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c083 / 14.ddi / GENINC.PAK / SEARCH.H < prev    next >
Encoding:
C/C++ Source or Header  |  1993-12-02  |  1.3 KB  |  50 lines

  1. /*  search.h
  2.  
  3.     Definitions for search functions.
  4.  
  5. */
  6.  
  7. /*
  8.  *      C/C++ Run Time Library - Version 6.0
  9.  *
  10.  *      Copyright (c) 1991, 1993 by Borland International
  11.  *      All Rights Reserved.
  12.  *
  13.  */
  14.  
  15. #ifndef __SEARCH_H
  16. #define __SEARCH_H
  17.  
  18. #if !defined(___DEFS_H)
  19. #include <_defs.h>
  20. #endif
  21.  
  22. #ifndef _SIZE_T
  23. #define _SIZE_T
  24. typedef unsigned size_t;
  25. #endif
  26.  
  27. #ifdef __cplusplus
  28. extern "C" {
  29. #endif
  30. void *      _RTLENTRYF _EXPFUNC bsearch(const void * __key, const void * __base, 
  31.                            size_t __nelem, size_t __width,
  32.                            int (_USERENTRY *fcmp)(const void *,
  33.                            const void *));
  34. void *      _RTLENTRY _EXPFUNC lfind(const void * __key, const void * __base, 
  35.                                 size_t*__num, size_t __width,
  36.                                 int (_USERENTRY *fcmp)(const void *, const void *));
  37. void *      _RTLENTRY _EXPFUNC lsearch(const void * __key, void * __base, 
  38.                                 size_t*__num, size_t __width, 
  39.                                 int (_USERENTRY *fcmp)(const void *, const void *));
  40. void        _RTLENTRYF _EXPFUNC qsort(void * __base, size_t __nelem, size_t __width,
  41.                          int (_USERENTRY *__fcmp)(const void *, const void *));
  42.  
  43.  
  44. #ifdef __cplusplus
  45. }
  46. #endif
  47.  
  48. #endif  /* __SEARCH_H */
  49.  
  50.