Сравнить элементы двух директорий
#include <sys/types.h>#include <dirent.h>int alphasort( struct dirent **d1,struct dirent **d2 );
libc
The alphasort() function alphabetically compares two directory entries. You can use it as the compar argument to scandir().
Legacy Unix
closedir(), struct dirent, opendir(), readdir(), rewinddir(), scandir(), seekdir(), telldir()
Предыдущий раздел: Описание API системной библиотеки