mirror of
https://github.com/autc04/Retro68.git
synced 2024-11-30 19:53:46 +00:00
12 lines
258 B
C
12 lines
258 B
C
#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);
|
|
}
|