summaryrefslogtreecommitdiff
path: root/libc/misc/dirent/alphasort.c
blob: feae021e64b25b4e0d73ee223dcefc2a5a57028e (plain)
1
2
3
4
5
6
7
8
9
10
#include <dirent.h>
#include <string.h>
#include "dirstream.h"

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