mkdir.h 220 Bytes
Newer Older
Mikaël Salson's avatar
Mikaël Salson committed
1 2 3 4 5 6 7 8 9 10 11 12
#ifndef MKDIR_H
#define MKDIR_H

#include <sys/stat.h>

/**
 * Create a whole directory path (if it does not exist)
 * @return status, which is -1 in case of error.
 */
int mkpath(const char *path, mode_t mode);

#endif