Re: gtk-devel-list Digest, Vol 41, Issue 10
- From: "fred238 free fr" <fred238 free fr>
- To: gtk-devel-list gnome org
- Subject: Re: gtk-devel-list Digest, Vol 41, Issue 10
- Date: Thu, 13 Sep 2007 23:45:36 +0200
gtk-devel-list-request gnome org a �it :
Send gtk-devel-list mailing list submissions to
gtk-devel-list gnome org
To subscribe or unsubscribe via the World Wide Web, visit
http://mail.gnome.org/mailman/listinfo/gtk-devel-list
or, via email, send a message with subject or body 'help' to
gtk-devel-list-request gnome org
You can reach the person managing the list at
gtk-devel-list-owner gnome org
When replying, please edit your Subject line so it is more specific
than "Re: Contents of gtk-devel-list digest..."
Today's Topics:
1. Question about gchar & g_strconcat() (fred238 free fr)
2. Re: Question about gchar & g_strconcat() (David Ne?as (Yeti))
----------------------------------------------------------------------
Message: 1
Date: Wed, 12 Sep 2007 20:20:18 +0200
From: "fred238 free fr" <fred238 free fr>
Subject: Question about gchar & g_strconcat()
To: gtk-devel-list gnome org
Message-ID: <46E82DE2 2040409 free fr>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
hello,
gchar *file;
file="test";
file = g_strconcat("/some/path/", file, ".txt", NULL);
g_printf("%s", file);
My question is do i must allocate memory for file ?
Fred
------------------------------
Message: 2
Date: Wed, 12 Sep 2007 20:49:44 +0200
From: David Ne?as (Yeti) <yeti physics muni cz>
Subject: Re: Question about gchar & g_strconcat()
To: gtk-devel-list gnome org
Message-ID: <20070912184944 GA421 potato chello upc cz>
Content-Type: text/plain; charset=us-ascii
On Wed, Sep 12, 2007 at 08:20:18PM +0200, fred238 free fr wrote:
gchar *file;
file="test";
file = g_strconcat("/some/path/", file, ".txt", NULL);
g_printf("%s", file);
My question is do i must allocate memory for file ?
The topic of this list is the development of Gtk+, not with
Gtk+. Direct questions like this to gtk-list.
The short answer is: No, but you have to *free* it. See the
documentation of g_strconcat(). And you should use
g_build_filename().
Yeti
--
http://gwyddion.net/
------------------------------
_______________________________________________
gtk-devel-list mailing list
gtk-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-devel-list
End of gtk-devel-list Digest, Vol 41, Issue 10
**********************************************
ok, thanks.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]