[gnome-love] More question on gchar



I have two question on gchar below:

/*Question: do I have to allocate memory to new_string
when it is declared?*/
gchar *new_string;
new_string = g_strconcat (search_web_uri, "foo",
"baa", NULL);

/*Question:is that ok since new_string is a pointer to
gchar, not to char? */
nautilus_window_go_to(window,new_string);

-----------------
Function is:
nautilus_window_go_to (NautilusWindow *window, char
*search_web_uri)
{
.............
}

Thanks
Yiqing Lee


__________________________________________________
Do You Yahoo!?
Sign up for SBC Yahoo! Dial - First Month Free
http://sbc.yahoo.com



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]