diff options
Diffstat (limited to 'src/dirent/alphasort.c')
| -rw-r--r-- | src/dirent/alphasort.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/dirent/alphasort.c b/src/dirent/alphasort.c new file mode 100644 index 0000000..ab2624e --- /dev/null +++ b/src/dirent/alphasort.c @@ -0,0 +1,7 @@ +#include <string.h> +#include <dirent.h> + +int alphasort(const struct dirent **a, const struct dirent **b) +{ + return strcoll((*a)->d_name, (*b)->d_name); +} |
