added alhphasort

This commit is contained in:
nova
2025-07-06 07:04:19 +02:00
parent 322a1495c0
commit 05ba7c82a0
2 changed files with 12 additions and 1 deletions

View File

@@ -1,8 +1,13 @@
#include <curses.h>
#include <dirent.h>
#include "defines.h"
#ifndef SORTING_GUARD
#define SORTING_GUARD
#include "sorting.c"
#endif
void sort_dir(unsigned long *dir_length_width, char *dir_content);
int skip_hidden_files(const struct dirent *entry);
void sort_dir(unsigned long *dir_length_width, char *dir_content);
int sort_natural(const void *file0, const void *file1);
int sort_alpha(const void *file0, const void *file1);