All pastes #100667 Raw Edit

Mine

public text v1 · immutable
#100667 ·published 2006-07-26 10:03 UTC
rendered paste body
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;

}