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.

31 lines
1.0 KiB

  1. /***
  2. *search.h - declarations for searcing/sorting routines
  3. *
  4. * Copyright (c) 1985-1988, 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 _SIZE_T_DEFINED
  13. typedef unsigned int size_t;
  14. #define _SIZE_T_DEFINED
  15. #endif
  16. #ifndef NO_EXT_KEYS /* extensions enabled */
  17. #define _CDECL cdecl
  18. #else /* extensions not enabled */
  19. #define _CDECL
  20. #endif /* NO_EXT_KEYS */
  21. /* function prototypes */
  22. char * _CDECL lsearch(char *, char *, unsigned int *, unsigned int, int (_CDECL *)(void *, void *));
  23. char * _CDECL lfind(char *, char *, unsigned int *, unsigned int, int (_CDECL *)(void *, void *));
  24. void * _CDECL bsearch(const void *, const void *, size_t, size_t, int (_CDECL *)(const void *, const void *));
  25. void _CDECL qsort(void *, size_t, size_t, int (_CDECL *)(const void *, const void *));