Welcome to mirror list, hosted at ThFree Co, Russian Federation.

versionsort.c « linux « sys « libc « newlib - cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 13cbdccfc0a3c15697e4ae3326e8be7ee70a6bce (plain)
1
2
3
4
5
6
7
8
9
10
11
#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);
}