Retro68/gcc/newlib/libc/sys/linux/versionsort.c

12 lines
258 B
C
Raw Normal View History

2017-04-11 21:13:36 +00:00
#include <dirent.h>
#include <string.h>
extern int __strverscmp (char *, char *);
int
versionsort (const void *a, const void *b)
{
return __strverscmp ((*(const struct dirent **)a)->d_name,
(*(const struct dirent **)b)->d_name);
}