aboutsummaryrefslogtreecommitdiff
path: root/src/dirent/alphasort.c
blob: c3193535331de190a28c5ed5fc6e04ce62b62223 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include <string.h>
#include <dirent.h>

int alphasort(const struct dirent **a, const struct dirent **b)
{
	return strcoll((*a)->d_name, (*b)->d_name);
}


#ifdef TEST
int
main(void) {
	return 0;
}
#endif