summaryrefslogtreecommitdiff
path: root/libc/misc/dirent/alphasort64.c
blob: 6eb414241ce5d851e9443e04e4eba6849e3c4e14 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/*
 * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
 *
 * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
 */

#include <_lfs_64.h>
#include <dirent.h>

#if __WORDSIZE != 64
# include <string.h>
# include "dirstream.h"

int alphasort64(const struct dirent64 **a, const struct dirent64 **b)
{
	return strcoll((*a)->d_name, (*b)->d_name);
}
#endif