Management directory in C