summaryrefslogblamecommitdiff
path: root/src/dirent/versionsort.c
blob: d4c489230abb864c167d910078a4cda9c6ef2655 (plain) (tree)
1
2
3
4
5
6
7
8
9
10







                                                                 

                    
                                       
#define _GNU_SOURCE
#include <string.h>
#include <dirent.h>

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

#undef versionsort64
weak_alias(versionsort, versionsort64);