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) 2022 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 void sort_dir_free( char **list );
40 
41 #endif
sort_dir
int sort_dir(const char *dirname, char ***list, int(*sort)(const char *a, const char *b))
Obtain a sorted directory listing.
sort_dir_free
void sort_dir_free(char **list)
Free a sorted directory listing.