summaryrefslogtreecommitdiff
path: root/gstring.h
diff options
context:
space:
mode:
authorHavoc Pennington <hp@pobox.com>2000-10-27 02:46:04 +0000
committerHavoc Pennington <hp@src.gnome.org>2000-10-27 02:46:04 +0000
commit32ef70d4b27ac912188a47b6611d5e8c0516cc2f (patch)
tree04cc4c82c2f8d29f72efa9c08523021f2823f979 /gstring.h
parent7ea09e45892c8239bd4d404463123592e6b3746d (diff)
New module to parse a simple markup language
2000-10-24 Havoc Pennington <hp@pobox.com> * gmarkup.h, gmarkup.c: New module to parse a simple markup language * Makefile.am: add gmarkup.h, gmarkup.c * tests/Makefile.am: add markup-test * gstring.h (g_string_new_len): new function to create a string with a length (g_string_new): avoid a gratuitous realloc
Diffstat (limited to 'gstring.h')
-rw-r--r--gstring.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/gstring.h b/gstring.h
index 4a9557593..d2f88e066 100644
--- a/gstring.h
+++ b/gstring.h
@@ -53,6 +53,8 @@ gchar* g_string_chunk_insert_const (GStringChunk *chunk,
/* Strings
*/
GString* g_string_new (const gchar *init);
+GString* g_string_new_len (const gchar *init,
+ gint len);
GString* g_string_sized_new (guint dfl_size);
gchar* g_string_free (GString *string,
gboolean free_segment);