Re: what's the deal with string chunks?
- From: ha shao <hashao hashao hypermart net>
- To: gtk-app-devel-list gnome org
- Subject: Re: what's the deal with string chunks?
- Date: Tue, 1 Jan 2002 12:46:09 +0800
On Thu, Dec 27, 2001 at 05:49:37PM -0800, p dirac org wrote:
i'm totally confused.
the glib reference shows how to:
declare a GStringChunk
add a GString to a GStringChunk
free a GStringChunk
the reference guide makes no mention of how to access the GStrings in
the GString chunk. accessing the data seems pretty important.
how does one access the GStrings that you put into a GStringChunk?
When you insert a gchar* (not gstring) into GStringChunk, the
return value will be the pointer to the inserted string you can access.
So just save that returned pointer and use it.
--
Best regard
hashao
[Date Prev][
Date Next] [Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]