[EMAIL PROTECTED] a écrit :
> 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
>       [EMAIL PROTECTED]
> 
> You can reach the person managing the list at
>       [EMAIL PROTECTED]
> 
> 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() ([EMAIL PROTECTED])
>    2. Re: Question about gchar & g_strconcat() (David Ne?as (Yeti))
> 
> 
> ----------------------------------------------------------------------
> 
> Message: 1
> Date: Wed, 12 Sep 2007 20:20:18 +0200
> From: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
> Subject: Question about gchar & g_strconcat()
> To: gtk-devel-list@gnome.org
> Message-ID: <[EMAIL PROTECTED]>
> 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) <[EMAIL PROTECTED]>
> Subject: Re: Question about gchar & g_strconcat()
> To: gtk-devel-list@gnome.org
> Message-ID: <[EMAIL PROTECTED]>
> Content-Type: text/plain; charset=us-ascii
> 
> On Wed, Sep 12, 2007 at 08:20:18PM +0200, [EMAIL PROTECTED] 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.

_______________________________________________
gtk-devel-list mailing list
gtk-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-devel-list

Reply via email to