kolibrios-fun/contrib/sdk/sources/newlib/libc/dirent/alphasort.c
turbocat 2287b1e29b newlibc:
Added new functions:
- dir.h: mkdir, rmdir, chdir
- dirent.h:  alphasort, opendir, closedir, readdir, rewinddir, seekdir, telldir, scandir

git-svn-id: svn://kolibrios.org@8759 a494cfbc-eb01-0410-851d-a64ba20cac60
2021-06-02 00:58:56 +00:00

8 lines
155 B
C

#include <string.h>
#include <dirent.h>
int alphasort(const struct dirent **a, const struct dirent **b)
{
return strcoll((*a)->d_name, (*b)->d_name);
}