home *** CD-ROM | disk | FTP | other *** search
/ Magazyn Internet 2000 May / MICD_2000_05.iso / CBuilder5 / INSTALL / DATA1.CAB / Program_Built_Files / Include / search.h < prev    next >
C/C++ Source or Header  |  2000-02-01  |  2KB  |  73 lines

  1. /*  search.h
  2.  
  3.     Definitions for search functions.
  4.  
  5. */
  6.  
  7. /*
  8.  *      C/C++ Run Time Library - Version 10.0
  9.  *
  10.  *      Copyright (c) 1991, 2000 by Inprise Corporation
  11.  *      All Rights Reserved.
  12.  *
  13.  */
  14.  
  15. /* $Revision:   9.2  $ */
  16.  
  17. #ifndef __SEARCH_H
  18. #define __SEARCH_H
  19.  
  20. #ifndef ___STDDEF_H
  21. #include <_stddef.h>
  22. #endif
  23.  
  24. #if !defined(RC_INVOKED)
  25.  
  26. #if defined(__STDC__)
  27. #pragma warn -nak
  28. #endif
  29.  
  30. #endif  /* !RC_INVOKED */
  31.  
  32. #ifdef __cplusplus
  33. namespace std {
  34. extern "C" {
  35. #endif
  36. void *      _RTLENTRYF _EXPFUNC bsearch(const void * __key, const void * __base,
  37.                            _SIZE_T __nelem, _SIZE_T __width,
  38.                            int (_USERENTRY *fcmp)(const void *,
  39.                            const void *));
  40. void *      _RTLENTRY _EXPFUNC lfind(const void * __key, const void * __base,
  41.                                 _SIZE_T*__num, _SIZE_T __width,
  42.                                 int (_USERENTRY *fcmp)(const void *, const void *));
  43. void *      _RTLENTRY _EXPFUNC lsearch(const void * __key, void * __base,
  44.                                 _SIZE_T*__num, _SIZE_T __width,
  45.                                 int (_USERENTRY *fcmp)(const void *, const void *));
  46. void        _RTLENTRYF _EXPFUNC qsort(void * __base, _SIZE_T __nelem, _SIZE_T __width,
  47.                          int (_USERENTRY *__fcmp)(const void *, const void *));
  48.  
  49.  
  50. #ifdef __cplusplus
  51. }
  52. }
  53. #endif
  54.  
  55.  
  56. #if !defined(RC_INVOKED)
  57.  
  58. #if defined(__STDC__)
  59. #pragma warn .nak
  60. #endif
  61.  
  62. #endif  /* !RC_INVOKED */
  63.  
  64.  
  65. #endif  /* __SEARCH_H */
  66.  
  67. #if defined(__cplusplus) && !defined(__USING_CNAME__) && !defined(__SEARCH_H_USING_LIST)
  68. #define __SEARCH_H_USING_LIST
  69.     using std::bsearch;
  70.     using std::lfind;
  71.     using std::lsearch;
  72.     using std::qsort;
  73. #endif /* __USING_CNAME__ */