mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-10-25 14:32:16 +02:00
add g_strdupv test
2000-12-06 Havoc Pennington <hp@pobox.com> * tests/strfunc-test.c (main): add g_strdupv test * gstrfuncs.c (g_strdupv): Add a function to copy an array of strings
This commit is contained in:
committed by
Havoc Pennington
parent
e2fd4e2bd0
commit
e5c1f207c9
@@ -109,6 +109,7 @@ gpointer g_memdup (gconstpointer mem,
|
||||
* g_strjoinv() concatenates all of str_array's strings, sliding in an
|
||||
* optional separator, the returned string is newly allocated.
|
||||
* g_strfreev() frees the array itself and all of its strings.
|
||||
* g_strdupv() copies a NULL-terminated array of strings
|
||||
*/
|
||||
gchar** g_strsplit (const gchar *string,
|
||||
const gchar *delimiter,
|
||||
@@ -116,6 +117,7 @@ gchar** g_strsplit (const gchar *string,
|
||||
gchar* g_strjoinv (const gchar *separator,
|
||||
gchar **str_array);
|
||||
void g_strfreev (gchar **str_array);
|
||||
gchar** g_strdupv (gchar **str_array);
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
|
||||
Reference in New Issue
Block a user