typedef struct tab_menuitem tab_menuitem; struct tab_menuitem { int end_x; int y; bool visible; void (*load_content) (); tab_menuitem *next; tab_menuitem *previous; char* text; }; char *fill_string ( char* location, char* string ) { location = NULL; if ((location = realloc ( location, ( strlen ( string ) + 1 ) ))==NULL) { exit(0); } strcpy ( location, string ); return location; }