kimeera/src/disp/print.c

21 lines
317 B
C

#include "disp.h"
int
disp_print(char *text)
{
char *buffer_cursor = disp_buffer;
char *text_cursor = text;
while (*buffer_cursor != '\0')
buffer_cursor += 1;
while (*text_cursor != '\0') {
*buffer_cursor = *text_cursor;
buffer_cursor += 1;
text_cursor += 1;
}
buffer_cursor[1] = '\0';
return 0;
}