summaryrefslogtreecommitdiffstats
path: root/path_utils/path_utils.h
diff options
context:
space:
mode:
authorStephen Gallagher <sgallagh@redhat.com>2012-03-07 09:29:46 -0500
committerStephen Gallagher <sgallagh@redhat.com>2012-03-08 08:10:56 -0500
commit1f9961c46d1d507046e57bb08e0d2e25d77f2d82 (patch)
tree6ce0e6cae33c3b9b5a92567d47d1d22e0767a83f /path_utils/path_utils.h
parent030d99cef35962dc78111407218d66215296de4b (diff)
downloadding-libs-1f9961c46d1d507046e57bb08e0d2e25d77f2d82.tar.gz
ding-libs-1f9961c46d1d507046e57bb08e0d2e25d77f2d82.tar.xz
ding-libs-1f9961c46d1d507046e57bb08e0d2e25d77f2d82.zip
path_utils: path_concat should return empty string on ENOBUFS
Also clean up the code a bit and add more comments
Diffstat (limited to 'path_utils/path_utils.h')
-rw-r--r--path_utils/path_utils.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/path_utils/path_utils.h b/path_utils/path_utils.h
index 2fd567c..17ed1f4 100644
--- a/path_utils/path_utils.h
+++ b/path_utils/path_utils.h
@@ -198,7 +198,8 @@ bool is_absolute_path(const char *path);
* @param[in] tail The second component of the path
*
* @return \c SUCCESS if successful, non-zero error code otherwise.
- * \li \c ENOBUFS If the buffer space is too small
+ * \li \c ENOBUFS If the buffer space is too small. In this case,
+ * path will be set to an empty string.
*/
int path_concat(char *path, size_t path_size, const char *head, const char *tail);