GLib questions, GArray and GNode



Hi,

I am using glib (version 2.0) for developing some
applications. I have some questions about use of
Garray and GNode (G-n-ary tree).

1. Is it safe to return an initialized GArray * from a
function? e.g. copying garray array1 into garray
array2 and then returning pointer to array2.

2. For n-ary tree, is it possible to add strings
(static) as data?

3. Is it possible to add a structure as data in
n-ary-tree? If yes, how to the functions like
g_node_find work?

Thanks in advance,
Kaustubh



      ____________________________________________________________________________________
Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ



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