We Recommend

Learning Python Learning Python
The authors of Learning Python show you enough essentials of the Python scripting language to enable you to begin solving problems right away, then reveal more powerful aspects of the language one at a time. This approach is sure to appeal to programmers and system administrators who have urgent problems and a preference for learning by semi-guided experimentation.


Posted By

pckujawa on 07/16/08


Tagged

String c


Versions (?)


Using GNULib's GString in C


Published in: Other 


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

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.