Using GNULib's GString in C


/ Published in: Other
Save to your folder(s)

The GNULib is included in GTK+.


Copy this code and paste it in your HTML
  1. GString *myString = g_string_new("Starting string value");
  2. // To print the string, often it is necessary to point to the gchar * str value:
  3. print(myString->str);

URL: http://library.gnome.org/devel/glib/stable/glib-Strings.html

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.