All pastes #907736 Raw Edit

Anonymous

public text v1 · immutable
·published 2008-02-17 21:19 UTC
rendered paste body
void cons_addline(char *text)
{
	int l;
	char *start, *end;

	start = end = text;

	while (*end)
	{
		if (*end == '\n')
		{
			for (l=0;l<59;l++)
				strcpy(cons_buffer[l],cons_buffer[l+1]);

			strncpy (cons_buffer[59], start, end-start);
			start = end + 1;
		}
		end++;
	}
}