31#ifndef NETSURF_UTILS_DIRENT_H
32#define NETSURF_UTILS_DIRENT_H
40int alphasort(
const struct dirent **d1,
const struct dirent **d2);
41int scandir(
const char *dir,
struct dirent ***namelist,
42 int (*sel)(
const struct dirent *),
43 int (*
compar)(
const struct dirent **,
const struct dirent **));
directory traversal and entry
int alphasort(const struct dirent **d1, const struct dirent **d2)
int scandir(const char *dir, struct dirent ***namelist, int(*sel)(const struct dirent *), int(*compar)(const struct dirent **, const struct dirent **))
static int compar(const void *va, const void *vb)
Quick sort comparison.