sort.h 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. /* Sorting algorithms.
  2. Copyright (C) 2000, 2002 Free Software Foundation, Inc.
  3. Contributed by Mark Mitchell <mark@codesourcery.com>.
  4. This file is part of GCC.
  5. GCC is free software; you can redistribute it and/or modify it
  6. under the terms of the GNU General Public License as published by
  7. the Free Software Foundation; either version 2, or (at your option)
  8. any later version.
  9. GCC is distributed in the hope that it will be useful, but
  10. WITHOUT ANY WARRANTY; without even the implied warranty of
  11. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  12. General Public License for more details.
  13. You should have received a copy of the GNU General Public License
  14. along with GCC; see the file COPYING. If not, write to
  15. the Free Software Foundation, 51 Franklin Street - Fifth Floor,
  16. Boston, MA 02110-1301, USA. */
  17. #ifndef SORT_H
  18. #define SORT_H
  19. #include <sys/types.h> /* For size_t */
  20. #ifdef __STDC__
  21. #include <stddef.h>
  22. #endif /* __STDC__ */
  23. #ifdef __cplusplus
  24. extern "C" {
  25. #endif /* __cplusplus */
  26. #include "ansidecl.h"
  27. /* Sort an array of pointers. */
  28. extern void sort_pointers (size_t, void **, void **);
  29. #ifdef __cplusplus
  30. }
  31. #endif /* __cplusplus */
  32. #endif /* SORT_H */