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);


Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.