Reimplementation of Pijul in C, for education, fun and absolutely no profit
#ifndef ANI_DIR_H
#define ANI_DIR_H

/* Routines for working with directories */

int has_dotpijul(const char *); /* check if given directory has a .pijul */

/**
 * Search for a .pijul folder. Starts from the current working
 * directory, and walks up the parent directories until a directory is
 * found. If found, returns the absolute path (without "/.pijul" as an
 * allocated string. Otherwise, returns NULL
 */
char *find_dotpijul(void);

#endif