home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c480 / 20.ddi / INCLUDE / SEARCH.H_ / SEARCH.H
Encoding:
C/C++ Source or Header  |  1993-02-08  |  1.4 KB  |  60 lines

  1. /***
  2. *search.h - declarations for searcing/sorting routines
  3. *
  4. *   Copyright (c) 1985-1992, 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 (_MSC_VER <= 600)
  20. #define __cdecl     _cdecl
  21. #define __far       _far
  22. #endif 
  23.  
  24. #ifndef _SIZE_T_DEFINED
  25. typedef unsigned int size_t;
  26. #define _SIZE_T_DEFINED
  27. #endif 
  28.  
  29.  
  30. /* function prototypes */
  31.  
  32. void * __cdecl bsearch(const void *, const void *,
  33.     size_t, size_t, int (__cdecl *)(const void *,
  34.     const void *));
  35. void * __cdecl _lfind(const void *, const void *,
  36.     unsigned int *, unsigned int, int (__cdecl *)
  37.     (const void *, const void *));
  38. void * __cdecl _lsearch(const void *, void *,
  39.     unsigned int *, unsigned int, int (__cdecl *)
  40.     (const void *, const void *));
  41. void __cdecl qsort(void *, size_t, size_t, int (__cdecl *)
  42.     (const void *, const void *));
  43.  
  44. #ifndef __STDC__
  45. /* Non-ANSI names for compatibility */
  46. void * __cdecl lfind(const void *, const void *,
  47.     unsigned int *, unsigned int, int (__cdecl *)
  48.     (const void *, const void *));
  49. void * __cdecl lsearch(const void *, void *,
  50.     unsigned int *, unsigned int, int (__cdecl *)
  51.     (const void *, const void *));
  52. #endif 
  53.  
  54. #ifdef __cplusplus
  55. }
  56. #endif 
  57.  
  58. #define _INC_SEARCH
  59. #endif 
  60.