xref: /csrg-svn/lib/libplot/dumb/label.c (revision 15435)
1*15435Sralph #ifndef lint
2*15435Sralph static char sccsid[] = "@(#)label.c	4.1 (Berkeley) 11/10/83";
3*15435Sralph #endif
4*15435Sralph 
5*15435Sralph #include "dumb.h"
6*15435Sralph 
7*15435Sralph label(string)
8*15435Sralph 	char *string;
9*15435Sralph {
10*15435Sralph 	while(*string != '\0' && currentx < COLS){
11*15435Sralph 		screenmat[currentx][currenty] = *string++;
12*15435Sralph 		currentx++;
13*15435Sralph 	}
14*15435Sralph 	if(currentx == COLS)
15*15435Sralph 		currentx = currentx-1;
16*15435Sralph 
17*15435Sralph }
18