Posted By

pckujawa on 07/16/08


String c

Versions (?)

Using GNULib's GString in C

 / Published in: Other


The GNULib is included in GTK+.

  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  

You need to login to post a comment.