about summary refs log tree commit diff
path: root/src/dirent/alphasort.c
blob: ab2624e2cc415dff8d4b4caf14a8a1dee69cd066 (plain) (blame)
1
2
3
4
5
6
7
#include <string.h>
#include <dirent.h>

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