sort.h revision 130803
1130803Smarcel/* Sorting algorithms. 2130803Smarcel Copyright (C) 2000, 2002 Free Software Foundation, Inc. 3130803Smarcel Contributed by Mark Mitchell <mark@codesourcery.com>. 4130803Smarcel 5130803SmarcelThis file is part of GCC. 6130803Smarcel 7130803SmarcelGCC is free software; you can redistribute it and/or modify it 8130803Smarcelunder the terms of the GNU General Public License as published by 9130803Smarcelthe Free Software Foundation; either version 2, or (at your option) 10130803Smarcelany later version. 11130803Smarcel 12130803SmarcelGCC is distributed in the hope that it will be useful, but 13130803SmarcelWITHOUT ANY WARRANTY; without even the implied warranty of 14130803SmarcelMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15130803SmarcelGeneral Public License for more details. 16130803Smarcel 17130803SmarcelYou should have received a copy of the GNU General Public License 18130803Smarcelalong with GCC; see the file COPYING. If not, write to 19130803Smarcelthe Free Software Foundation, 59 Temple Place - Suite 330, 20130803SmarcelBoston, MA 02111-1307, USA. */ 21130803Smarcel 22130803Smarcel#ifndef SORT_H 23130803Smarcel#define SORT_H 24130803Smarcel 25130803Smarcel#include <sys/types.h> /* For size_t */ 26130803Smarcel#ifdef __STDC__ 27130803Smarcel#include <stddef.h> 28130803Smarcel#endif /* __STDC__ */ 29130803Smarcel 30130803Smarcel#ifdef __cplusplus 31130803Smarcelextern "C" { 32130803Smarcel#endif /* __cplusplus */ 33130803Smarcel 34130803Smarcel#include "ansidecl.h" 35130803Smarcel 36130803Smarcel/* Sort an array of pointers. */ 37130803Smarcel 38130803Smarcelextern void sort_pointers PARAMS ((size_t, void **, void **)); 39130803Smarcel 40130803Smarcel#ifdef __cplusplus 41130803Smarcel} 42130803Smarcel#endif /* __cplusplus */ 43130803Smarcel 44130803Smarcel#endif /* SORT_H */ 45130803Smarcel 46130803Smarcel 47130803Smarcel 48130803Smarcel 49