cctools
sort_dir.h
Go to the documentation of this file.
1 /*
2 Copyright (C) 2003-2004 Douglas Thain and the University of Wisconsin
3 Copyright (C) 2005- The University of Notre Dame
4 This software is distributed under the GNU General Public License.
5 See the file COPYING for details.
6 */
7 
8 #ifndef SORT_DIR_H
9 #define SORT_DIR_H
10 
34 int sort_dir(const char *dirname, char ***list, int (*sort) (const char *a, const char *b));
35 
39 #define sort_dir_free free
40 
41 #endif
int sort_dir(const char *dirname, char ***list, int(*sort)(const char *a, const char *b))
Obtain a sorted directory listing.