Some useful directory-oriented functions in C.