Hey Kuldeep,

2013/4/4 kuldeep dhaka <[email protected]>:
>
> 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));

I think
natural_array = (gdouble*)g_array_free(arr, FALSE);
would do what you are asking for.

Christophe
_______________________________________________
gnome-devel-list mailing list
[email protected]
https://mail.gnome.org/mailman/listinfo/gnome-devel-list

Reply via email to