array of structs with fixed content

Hi you all.

I need to creat an LCD based user interface.
Therefore , I decided to use a struct for each LCD menu:

typedef struct Menu {
	char lcd_first_line[16];
	char lcd_second_line[16];
	struct Menu * child_pointer;
	float menu_number;
	// pointer to run function
}MenuItem;
and to declare an array of menus:
MenuItem xdata main_menu[5];
but I need to init the values of the struct (xdata) , and I want them to be fixed (code).

Does someone have an idea how to do that ?


Thanks


Guy

More questions in this forum