Permalink
Fetching contributors…
Cannot retrieve contributors at this time
12 lines (8 sloc) 268 Bytes
#ifndef DIRTRAVERSE_H
#define DIRTRAVERSE_H
typedef int (*visit_cb)(int action, char *name, char *path, void *userdata);
#define VISIT_FILE 1
#define VISIT_GOING_DEEPER 2
#define VISIT_GOING_UP 3
int visit_all_files(char *name, visit_cb cb, void *userdata);
#endif