summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2023-01-17 14:20:47 -0500
committerMatthias Clasen <mclasen@redhat.com>2023-01-17 14:21:23 -0500
commitc42fa3898ee8628ac2fc2c125ee4b225e9b26e10 (patch)
tree818c1a63498b927d65f1e4c268b9981660205826
parent36261bc1c1356da88c921ab15862bc8c45789475 (diff)
downloadglib-g-string-append-filename.tar.gz
Add a cross-referenceg-string-append-filename
Mention g_string_append_filename in the g_build_filename docs.
-rw-r--r--glib/gfileutils.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/glib/gfileutils.c b/glib/gfileutils.c
index 5ae0b12ea..fe22f1ff0 100644
--- a/glib/gfileutils.c
+++ b/glib/gfileutils.c
@@ -2241,6 +2241,9 @@ g_build_filenamev (gchar **args)
* path. If the first element is a relative path, the result will
* be a relative path.
*
+ * See g_string_append_filename() as an alternative if you are building
+ * multiple filenames in a loop.
+ *
* Returns: (type filename) (transfer full): a newly-allocated string that
* must be freed with g_free().
**/