home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c040 / 6.ddi / INCLUDE / SEARCH.H$ / SEARCH.bin
Encoding:
Text File  |  1989-09-27  |  1.1 KB  |  42 lines

  1. /***
  2. *search.h - declarations for searcing/sorting routines
  3. *
  4. *    Copyright (c) 1985-1990, 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. #if defined(_DLL) && !defined(_MT)
  14. #error Cannot define _DLL without _MT
  15. #endif
  16.  
  17. #ifdef _MT
  18. #define _FAR_ _far
  19. #else
  20. #define _FAR_
  21. #endif
  22.  
  23. #ifndef _SIZE_T_DEFINED
  24. typedef unsigned int size_t;
  25. #define _SIZE_T_DEFINED
  26. #endif
  27.  
  28.  
  29. /* function prototypes */
  30.  
  31. void _FAR_ * _FAR_ _cdecl lsearch(const void _FAR_ *, void _FAR_ *,
  32.     unsigned int _FAR_ *, unsigned int, int (_FAR_ _cdecl *)
  33.     (const void _FAR_ *, const void _FAR_ *));
  34. void _FAR_ * _FAR_ _cdecl lfind(const void _FAR_ *, const void _FAR_ *,
  35.     unsigned int _FAR_ *, unsigned int, int (_FAR_ _cdecl *)
  36.     (const void _FAR_ *, const void _FAR_ *));
  37. void _FAR_ * _FAR_ _cdecl bsearch(const void _FAR_ *, const void _FAR_ *,
  38.     size_t, size_t, int (_FAR_ _cdecl *)(const void _FAR_ *,
  39.     const void _FAR_ *));
  40. void _FAR_ _cdecl qsort(void _FAR_ *, size_t, size_t, int (_FAR_ _cdecl *)
  41.     (const void _FAR_ *, const void _FAR_ *));
  42.