source:
trunk/libs/newlib/src/newlib/libc/sys/linux/versionsort.c
Last change on this file was 444, checked in by , 6 years ago | |
---|---|
File size: 258 bytes |
Line | |
---|---|
1 | #include <dirent.h> |
2 | #include <string.h> |
3 | |
4 | extern int __strverscmp (char *, char *); |
5 | |
6 | int |
7 | versionsort (const void *a, const void *b) |
8 | { |
9 | return __strverscmp ((*(const struct dirent **)a)->d_name, |
10 | (*(const struct dirent **)b)->d_name); |
11 | } |
Note: See TracBrowser
for help on using the repository browser.