summaryrefslogtreecommitdiff
path: root/libc/misc/dirent/alphasort64.c
blob: de7a87a9af27077c96f23775d3cfa73cffd689e5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/*
 * 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>
#include <string.h>
#include "dirstream.h"

/* Experimentally off - libc_hidden_proto(strcmp) */

int alphasort64(const void * a, const void * b)
{
    return strcmp ((*(const struct dirent64 **) a)->d_name,
	    (*(const struct dirent64 **) b)->d_name);
}