Anonymous
public text v1 · immutablevoid 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++;
}
}