Retro68/gcc/newlib/libc/sys/linux/versionsort64.c
Wolfgang Thaller d464252791 re-add newlib
2017-04-11 23:13:36 +02:00

12 lines
264 B
C

#include <dirent.h>
#include <string.h>
extern int __strverscmp (char *, char *);
int
versionsort64 (const void *a, const void *b)
{
return __strverscmp ((*(const struct dirent64 **)a)->d_name,
(*(const struct dirent64 **)b)->d_name);
}