diff options
author | Karel Zak | 2018-05-17 15:42:37 +0200 |
---|---|---|
committer | Karel Zak | 2018-06-21 13:07:46 +0200 |
commit | 7eb8e47bcd9979689b00625df6e7a20a2b9e2d41 (patch) | |
tree | 972c6248c85add66a30e5c0dcc30b99a652ec9dd /include | |
parent | lib/path: add ul_path_get_abspath() (diff) | |
download | kernel-qcow2-util-linux-7eb8e47bcd9979689b00625df6e7a20a2b9e2d41.tar.gz kernel-qcow2-util-linux-7eb8e47bcd9979689b00625df6e7a20a2b9e2d41.tar.xz kernel-qcow2-util-linux-7eb8e47bcd9979689b00625df6e7a20a2b9e2d41.zip |
lib/path: add ul_path_read_buffer()
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/path.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/path.h b/include/path.h index ebdb58d05..76c18e103 100644 --- a/include/path.h +++ b/include/path.h @@ -74,6 +74,10 @@ int ul_path_read_string(struct path_cxt *pc, char **str, const char *path); int ul_path_readf_string(struct path_cxt *pc, char **str, const char *path, ...) __attribute__ ((__format__ (__printf__, 3, 4))); +int ul_path_read_buffer(struct path_cxt *pc, char *buf, size_t bufsz, const char *path); +int ul_path_readf_buffer(struct path_cxt *pc, char *buf, size_t bufsz, const char *path, ...) + __attribute__ ((__format__ (__printf__, 4, 5))); + int ul_path_scanf(struct path_cxt *pc, const char *path, const char *fmt, ...); int ul_path_scanff(struct path_cxt *pc, const char *path, va_list ap, const char *fmt, ...) __attribute__ ((__format__ (__scanf__, 4, 5))); |