source: trunk/libs/newlib/src/newlib/libc/sys/linux/versionsort64.c

Last change on this file was 444, checked in by satin@…, 6 years ago

add newlib,libalmos-mkh, restructure shared_syscalls.h and mini-libc

File size: 264 bytes
Line 
1#include <dirent.h>
2#include <string.h>
3
4extern int __strverscmp (char *, char *);
5
6int
7versionsort64 (const void *a, const void *b)
8{
9  return __strverscmp ((*(const struct dirent64 **)a)->d_name,
10                       (*(const struct dirent64 **)b)->d_name);
11}
Note: See TracBrowser for help on using the repository browser.