summaryrefslogtreecommitdiff
path: root/src/dirent/alphasort.c
blob: bee672ebda0c510b2ea57335c69b06baf421f401 (plain)
1
2
3
4
5
6
7
8
9
#include <string.h>
#include <dirent.h>

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

weak_alias(alphasort, alphasort64);