summaryrefslogtreecommitdiff
path: root/src/dirent/versionsort.c
blob: 410cb703456f30413db70c32ec1877b90f6e23c3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
#define _GNU_SOURCE
#include <string.h>
#include <dirent.h>
#include "libc.h"

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

#undef versionsort64
LFS64(versionsort);