home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c045 / 2.ddi / INCLUDE / SEARCH.H$ / SEARCH.bin
Encoding:
Text File  |  1992-01-01  |  1.8 KB  |  71 lines

  1. /***
  2. *search.h - declarations for searcing/sorting routines
  3. *
  4. *    Copyright (c) 1985-1991, Microsoft Corporation.  All rights reserved.
  5. *
  6. *Purpose:
  7. *    This file contains the declarations for the sorting and
  8. *    searching routines.
  9. *    [System V]
  10. *
  11. ****/
  12.  
  13. #ifndef _INC_SEARCH
  14.  
  15. #ifdef __cplusplus
  16. extern "C" {
  17. #endif
  18.  
  19. #if defined(_DLL) && !defined(_MT)
  20. #error Cannot define _DLL without _MT
  21. #endif
  22.  
  23. #ifdef _MT
  24. #define _FAR_ __far
  25. #else
  26. #define _FAR_
  27. #endif
  28.  
  29. #if (_MSC_VER <= 600)
  30. #define __cdecl     _cdecl
  31. #define __far       _far
  32. #define __loadds    _loadds
  33. #endif
  34.  
  35. #ifndef _SIZE_T_DEFINED
  36. typedef unsigned int size_t;
  37. #define _SIZE_T_DEFINED
  38. #endif
  39.  
  40.  
  41. /* function prototypes */
  42.  
  43. void _FAR_ * _FAR_ __cdecl bsearch(const void _FAR_ *, const void _FAR_ *,
  44.     size_t, size_t, int (_FAR_ __cdecl *)(const void _FAR_ *,
  45.     const void _FAR_ *));
  46. void _FAR_ * _FAR_ __cdecl _lfind(const void _FAR_ *, const void _FAR_ *,
  47.     unsigned int _FAR_ *, unsigned int, int (_FAR_ __cdecl *)
  48.     (const void _FAR_ *, const void _FAR_ *));
  49. void _FAR_ * _FAR_ __cdecl _lsearch(const void _FAR_ *, void _FAR_ *,
  50.     unsigned int _FAR_ *, unsigned int, int (_FAR_ __cdecl *)
  51.     (const void _FAR_ *, const void _FAR_ *));
  52. void _FAR_ __cdecl qsort(void _FAR_ *, size_t, size_t, int (_FAR_ __cdecl *)
  53.     (const void _FAR_ *, const void _FAR_ *));
  54.  
  55. #ifndef __STDC__
  56. /* Non-ANSI names for compatibility */
  57. void _FAR_ * _FAR_ __cdecl lfind(const void _FAR_ *, const void _FAR_ *,
  58.     unsigned int _FAR_ *, unsigned int, int (_FAR_ __cdecl *)
  59.     (const void _FAR_ *, const void _FAR_ *));
  60. void _FAR_ * _FAR_ __cdecl lsearch(const void _FAR_ *, void _FAR_ *,
  61.     unsigned int _FAR_ *, unsigned int, int (_FAR_ __cdecl *)
  62.     (const void _FAR_ *, const void _FAR_ *));
  63. #endif
  64.  
  65. #ifdef __cplusplus
  66. }
  67. #endif
  68.  
  69. #define _INC_SEARCH
  70. #endif    /* _INC_SEARCH */
  71.