Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

59 lines
1.4 KiB

  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. #ifndef _INC_SEARCH
  13. #ifdef __cplusplus
  14. extern "C" {
  15. #endif
  16. #if (_MSC_VER <= 600)
  17. #define __cdecl _cdecl
  18. #define __far _far
  19. #endif
  20. #ifndef _SIZE_T_DEFINED
  21. typedef unsigned int size_t;
  22. #define _SIZE_T_DEFINED
  23. #endif
  24. /* function prototypes */
  25. void * __cdecl bsearch(const void *, const void *,
  26. size_t, size_t, int (__cdecl *)(const void *,
  27. const void *));
  28. void * __cdecl _lfind(const void *, const void *,
  29. unsigned int *, unsigned int, int (__cdecl *)
  30. (const void *, const void *));
  31. void * __cdecl _lsearch(const void *, void *,
  32. unsigned int *, unsigned int, int (__cdecl *)
  33. (const void *, const void *));
  34. void __cdecl qsort(void *, size_t, size_t, int (__cdecl *)
  35. (const void *, const void *));
  36. #ifndef __STDC__
  37. /* Non-ANSI names for compatibility */
  38. void * __cdecl lfind(const void *, const void *,
  39. unsigned int *, unsigned int, int (__cdecl *)
  40. (const void *, const void *));
  41. void * __cdecl lsearch(const void *, void *,
  42. unsigned int *, unsigned int, int (__cdecl *)
  43. (const void *, const void *));
  44. #endif
  45. #ifdef __cplusplus
  46. }
  47. #endif
  48. #define _INC_SEARCH
  49. #endif