home *** CD-ROM | disk | FTP | other *** search
/ CD Actual 9 / CDACTUAL9.iso / progs / CB / DATA.Z / SEARCH.H < prev    next >
Encoding:
C/C++ Source or Header  |  1996-04-18  |  1.5 KB  |  65 lines

  1. /*  search.h
  2.  
  3.     Definitions for search functions.
  4.  
  5. */
  6.  
  7. /* $Copyright: 1991$ */
  8. /* $Revision:   8.1  $ */
  9.  
  10. #ifndef __SEARCH_H
  11. #define __SEARCH_H
  12.  
  13. #if !defined(___DEFS_H)
  14. #include <_defs.h>
  15. #endif
  16.  
  17.  
  18. #if !defined(RC_INVOKED)
  19.  
  20. #if defined(__STDC__)
  21. #pragma warn -nak
  22. #endif
  23.  
  24. #endif  /* !RC_INVOKED */
  25.  
  26.  
  27. #ifndef _SIZE_T
  28. #define _SIZE_T
  29. typedef unsigned size_t;
  30. #endif
  31.  
  32. #ifdef __cplusplus
  33. extern "C" {
  34. #endif
  35. void *      _RTLENTRYF _EXPFUNC bsearch(const void * __key, const void * __base,
  36.                            size_t __nelem, size_t __width,
  37.                            int (_USERENTRY *fcmp)(const void *,
  38.                            const void *));
  39. void *      _RTLENTRY _EXPFUNC lfind(const void * __key, const void * __base,
  40.                                 size_t*__num, size_t __width,
  41.                                 int (_USERENTRY *fcmp)(const void *, const void *));
  42. void *      _RTLENTRY _EXPFUNC lsearch(const void * __key, void * __base,
  43.                                 size_t*__num, size_t __width,
  44.                                 int (_USERENTRY *fcmp)(const void *, const void *));
  45. void        _RTLENTRYF _EXPFUNC qsort(void * __base, size_t __nelem, size_t __width,
  46.                          int (_USERENTRY *__fcmp)(const void *, const void *));
  47.  
  48.  
  49. #ifdef __cplusplus
  50. }
  51. #endif
  52.  
  53.  
  54. #if !defined(RC_INVOKED)
  55.  
  56. #if defined(__STDC__)
  57. #pragma warn .nak
  58. #endif
  59.  
  60. #endif  /* !RC_INVOKED */
  61.  
  62.  
  63. #endif  /* __SEARCH_H */
  64.  
  65.