hello guys, i think a function like this could be useful. c-code:
GArray * arr; gdouble * natural_array; unsigned int size; arr = g_array_new (FALSE, FALSE, sizeof (gdouble)); ... add values to GArray .... <store the size of garray in size var> natural_array = g_array_natural(arr, sizeof(double)); #gnome, Juhaz : if you're talking about GArray, the accessor function isn't a function but macro, so there's no performance penalty to it. atleast still the function can be useful when we want to make things simple and when garray functionality is no longer required. -- *Kuldeep Singh Dhaka* +91-8791676237 Skype: kuldeep.dhaka [email protected] Programmer, Open Source, Web Developer, Entrepreneur, Animal Lover, Student, Blogger, Reverse Engineer, Embedded System. Bitcoins Accepted. My GnuPG Public Key<http://pgp.mit.edu:11371/pks/lookup?op=get&fingerprint=on&search=0x23816C5609DC7E26> Fork Me <https://github.com/kuldeepdhaka>
_______________________________________________ gnome-devel-list mailing list [email protected] https://mail.gnome.org/mailman/listinfo/gnome-devel-list
