mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-25 15:06:14 +01:00
Added g_strdup_printf check
This commit is contained in:
parent
bbbfe78d70
commit
ab114d33f7
@ -1,3 +1,7 @@
|
||||
Sat Jan 2 16:45:44 EST 1999 Jeff Garzik <jgarzik@pobox.com>
|
||||
|
||||
* testglib.c: Added g_strdup_printf check.
|
||||
|
||||
Fri Jan 1 21:58:40 EST 1999 Jeff Garzik <jgarzik@pobox.com>
|
||||
|
||||
* glib.h:
|
||||
|
@ -1,3 +1,7 @@
|
||||
Sat Jan 2 16:45:44 EST 1999 Jeff Garzik <jgarzik@pobox.com>
|
||||
|
||||
* testglib.c: Added g_strdup_printf check.
|
||||
|
||||
Fri Jan 1 21:58:40 EST 1999 Jeff Garzik <jgarzik@pobox.com>
|
||||
|
||||
* glib.h:
|
||||
|
@ -1,3 +1,7 @@
|
||||
Sat Jan 2 16:45:44 EST 1999 Jeff Garzik <jgarzik@pobox.com>
|
||||
|
||||
* testglib.c: Added g_strdup_printf check.
|
||||
|
||||
Fri Jan 1 21:58:40 EST 1999 Jeff Garzik <jgarzik@pobox.com>
|
||||
|
||||
* glib.h:
|
||||
|
@ -1,3 +1,7 @@
|
||||
Sat Jan 2 16:45:44 EST 1999 Jeff Garzik <jgarzik@pobox.com>
|
||||
|
||||
* testglib.c: Added g_strdup_printf check.
|
||||
|
||||
Fri Jan 1 21:58:40 EST 1999 Jeff Garzik <jgarzik@pobox.com>
|
||||
|
||||
* glib.h:
|
||||
|
@ -1,3 +1,7 @@
|
||||
Sat Jan 2 16:45:44 EST 1999 Jeff Garzik <jgarzik@pobox.com>
|
||||
|
||||
* testglib.c: Added g_strdup_printf check.
|
||||
|
||||
Fri Jan 1 21:58:40 EST 1999 Jeff Garzik <jgarzik@pobox.com>
|
||||
|
||||
* glib.h:
|
||||
|
@ -1,3 +1,7 @@
|
||||
Sat Jan 2 16:45:44 EST 1999 Jeff Garzik <jgarzik@pobox.com>
|
||||
|
||||
* testglib.c: Added g_strdup_printf check.
|
||||
|
||||
Fri Jan 1 21:58:40 EST 1999 Jeff Garzik <jgarzik@pobox.com>
|
||||
|
||||
* glib.h:
|
||||
|
@ -1,3 +1,7 @@
|
||||
Sat Jan 2 16:45:44 EST 1999 Jeff Garzik <jgarzik@pobox.com>
|
||||
|
||||
* testglib.c: Added g_strdup_printf check.
|
||||
|
||||
Fri Jan 1 21:58:40 EST 1999 Jeff Garzik <jgarzik@pobox.com>
|
||||
|
||||
* glib.h:
|
||||
|
@ -1,3 +1,7 @@
|
||||
Sat Jan 2 16:45:44 EST 1999 Jeff Garzik <jgarzik@pobox.com>
|
||||
|
||||
* testglib.c: Added g_strdup_printf check.
|
||||
|
||||
Fri Jan 1 21:58:40 EST 1999 Jeff Garzik <jgarzik@pobox.com>
|
||||
|
||||
* glib.h:
|
||||
|
@ -771,6 +771,14 @@ main (int argc,
|
||||
|
||||
g_print ("ok\n");
|
||||
|
||||
g_print ("checking g_strdup_printf...");
|
||||
string = g_strdup_printf ("%05d %-5s", 21, "test");
|
||||
g_assert (string != NULL);
|
||||
g_assert (strcmp(string, "00021 test ") == 0);
|
||||
g_free (string);
|
||||
|
||||
g_print ("ok\n");
|
||||
|
||||
/* g_debug (argv[0]); */
|
||||
|
||||
/* Relation tests */
|
||||
|
@ -771,6 +771,14 @@ main (int argc,
|
||||
|
||||
g_print ("ok\n");
|
||||
|
||||
g_print ("checking g_strdup_printf...");
|
||||
string = g_strdup_printf ("%05d %-5s", 21, "test");
|
||||
g_assert (string != NULL);
|
||||
g_assert (strcmp(string, "00021 test ") == 0);
|
||||
g_free (string);
|
||||
|
||||
g_print ("ok\n");
|
||||
|
||||
/* g_debug (argv[0]); */
|
||||
|
||||
/* Relation tests */
|
||||
|
Loading…
Reference in New Issue
Block a user