summaryrefslogtreecommitdiff
path: root/libc/misc/dirent/alphasort64.c
blob: ef1e83e455a3b3efea5616a020ce9cabe14467d0 (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 strcmp((*a)->d_name, (*b)->d_name);
}
#endif