diff options
author | Timo Sirainen <cras@irssi.org> | 2000-08-12 15:50:50 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2000-08-12 15:50:50 +0000 |
commit | 6675cec4599216f3b5942cbd83b48dd41b8c7f01 (patch) | |
tree | 2bab778ad5cec5ff3b46ebc237c3e31baf05d2b8 /src/core/misc.h | |
parent | 308e84bbc44db92fbb1fe0c2e177ae981865b788 (diff) | |
download | irssi-6675cec4599216f3b5942cbd83b48dd41b8c7f01.zip |
mkpath() - behaves like mkdir -p. Autologging now uses it to create
log directories.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@591 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/core/misc.h')
-rw-r--r-- | src/core/misc.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/core/misc.h b/src/core/misc.h index 08917208..3dc50dc1 100644 --- a/src/core/misc.h +++ b/src/core/misc.h @@ -41,6 +41,9 @@ char *stristr_full(const char *data, const char *key); /* easy way to check if regexp matches */ int regexp_match(const char *str, const char *regexp); +/* Create the directory and all it's parent directories */ +int mkpath(const char *path, int mode); +/* convert ~/ to $HOME */ char *convert_home(const char *path); /* Case-insensitive string hash functions */ |