mirror of https://git.musl-libc.org/git/musl
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
239 B
12 lines
239 B
#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);
|
|
|