Add g_build_path(), g_build_filename(), to create separated paths,

Sat Sep  8 17:14:51 2001  Owen Taylor  <otaylor@redhat.com>

        * glib/gfileutils.[ch]: Add g_build_path(),
        g_build_filename(), to create separated paths,
        suppressing duplicate separators, from varargs
        lists.

        * tests/strfunc-test.c: Add tests for g_build_path(),
        g_build_filename().
This commit is contained in:
Owen Taylor
2001-09-10 13:30:41 +00:00
committed by Owen Taylor
parent be84346358
commit 9393fc899e
11 changed files with 269 additions and 0 deletions

View File

@@ -88,6 +88,12 @@ int g_file_open_tmp (const char *tmpl,
char **name_used,
GError **error);
gchar *g_build_path (const gchar *separator,
const gchar *first_element,
...);
gchar *g_build_filename (const gchar *first_element,
...);
G_END_DECLS
#endif /* __G_FILEUTILS_H__ */