#include <stdio.h>
#include <stdlib.h>
#include <string.h>

char buffer[1000];
int bufIndex = 0;

void Add(const char *str)
{
	int len;

	len = strlen(str);
	strcpy(buffer + bufIndex, str);
	bufIndex += len;
}

int main()
{
	char buf[82];
	char *p;
	int i;

	for (i = 1; i <= 80; i++) {
		memset(buf, '*', i);
		buf[i] = '\n';
		buf[i+1] = '\0';
		Add(buf);
	}
	p = strdup(buffer);
	printf(p);
	free(p);
	return 0;
}
