GList for longtable params
This commit is contained in:
parent
5dbdbea94e
commit
2a1fb449f0
|
@ -1,4 +1,4 @@
|
|||
#include <stdio.h>
|
||||
//#include <stdio.h>
|
||||
#include <glib.h>
|
||||
|
||||
const gchar *params = "{lcrr@{...}l>{...}p{...}|l|c|r|r@{...}l|>{...}p{...}l|c|r|r@{...}l|>{...}p{...}||l||c||r||r@{...}l||>{...}p{...}|}";
|
||||
|
@ -40,9 +40,9 @@ int main (int argc, char *argv[])
|
|||
g_error_free (error);
|
||||
}
|
||||
|
||||
g_printf ("%s\n", params);
|
||||
g_print ("%s\n", params);
|
||||
for (it = g_list_first (list_params); it; it = g_list_next (it))
|
||||
g_printf ("Found: %s\n", (const gchar *) it->data);
|
||||
g_print ("Found: %s\n", (const gchar *) it->data);
|
||||
|
||||
g_free (reverse_params);
|
||||
g_list_free_full (list_params, g_free);
|
||||
|
|
Loading…
Reference in New Issue