home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / borhead.zip / SEARCH.H < prev    next >
C/C++ Source or Header  |  1994-11-09  |  2KB  |  70 lines

  1. /*  search.h
  2.  
  3.     Definitions for search functions.
  4.  
  5. */
  6.  
  7. /*
  8.  *      C/C++ Run Time Library - Version 1.5
  9.  *
  10.  *      Copyright (c) 1991, 1994 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.  
  23. #if !defined(RC_INVOKED)
  24.  
  25. #if defined(__STDC__)
  26. #pragma warn -nak
  27. #endif
  28.  
  29. #endif  /* !RC_INVOKED */
  30.  
  31.  
  32. #ifndef _SIZE_T
  33. #define _SIZE_T
  34. typedef unsigned size_t;
  35. #endif
  36.  
  37. #ifdef __cplusplus
  38. extern "C" {
  39. #endif
  40. void *      _RTLENTRYF _EXPFUNC bsearch(const void * __key, const void * __base, 
  41.                            size_t __nelem, size_t __width,
  42.                            int (_USERENTRY *fcmp)(const void *,
  43.                            const void *));
  44. void *      _RTLENTRY _EXPFUNC lfind(const void * __key, const void * __base, 
  45.                                 size_t*__num, size_t __width,
  46.                                 int (_USERENTRY *fcmp)(const void *, const void *));
  47. void *      _RTLENTRY _EXPFUNC lsearch(const void * __key, void * __base, 
  48.                                 size_t*__num, size_t __width, 
  49.                                 int (_USERENTRY *fcmp)(const void *, const void *));
  50. void        _RTLENTRYF _EXPFUNC qsort(void * __base, size_t __nelem, size_t __width,
  51.                          int (_USERENTRY *__fcmp)(const void *, const void *));
  52.  
  53.  
  54. #ifdef __cplusplus
  55. }
  56. #endif
  57.  
  58.  
  59. #if !defined(RC_INVOKED)
  60.  
  61. #if defined(__STDC__)
  62. #pragma warn .nak
  63. #endif
  64.  
  65. #endif  /* !RC_INVOKED */
  66.  
  67.  
  68. #endif  /* __SEARCH_H */
  69.  
  70.