summaryrefslogtreecommitdiffstats
path: root/include/path.h
diff options
context:
space:
mode:
authorKarel Zak2014-01-06 16:48:13 +0100
committerKarel Zak2014-01-06 16:48:13 +0100
commitdd3bc51a539ffdd5c6c6b7d0b20acd1f61bdd337 (patch)
tree411df4079c50dceff2ccb3d5d6d6e33c0eb88936 /include/path.h
parenthexdump: convert a variable type according with fmt (diff)
downloadkernel-qcow2-util-linux-dd3bc51a539ffdd5c6c6b7d0b20acd1f61bdd337.tar.gz
kernel-qcow2-util-linux-dd3bc51a539ffdd5c6c6b7d0b20acd1f61bdd337.tar.xz
kernel-qcow2-util-linux-dd3bc51a539ffdd5c6c6b7d0b20acd1f61bdd337.zip
lib/path: add path_strdup()
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'include/path.h')
-rw-r--r--include/path.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/path.h b/include/path.h
index 615d28491..45da692f8 100644
--- a/include/path.h
+++ b/include/path.h
@@ -4,6 +4,8 @@
#include <stdio.h>
#include <stdint.h>
+extern char *path_strdup(const char *path, ...)
+ __attribute__ ((__format__ (__printf__, 1, 2)));
extern FILE *path_fopen(const char *mode, int exit_on_err, const char *path, ...)
__attribute__ ((__format__ (__printf__, 3, 4)));
extern void path_read_str(char *result, size_t len, const char *path, ...)