How to operate dynamicly allocated data



Hi,
I'd like to ask about idea how to make in program written in C/gtk
operation on dynamic allocated data between few callback function.

I  have two buttons.
On clicked first I call callback and inside this function I read data
from file. Data is  allocated inside dynamic structure like this one:

X = g_new0 (gfloat, number_of_my_data_in_file);
	
Now I'd like to have access to this data when I clicked other button
later, in other callback function.

How to do this ?


Daniel


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