xref: /csrg-svn/lib/libplot/dumb/label.c (revision 48505)
1*48505Sbostic /*-
2*48505Sbostic  * Copyright (c) 1980 The Regents of the University of California.
3*48505Sbostic  * All rights reserved.
4*48505Sbostic  *
5*48505Sbostic  * %sccs.include.proprietary.c%
619971Sdist  */
719971Sdist 
815435Sralph #ifndef lint
9*48505Sbostic static char sccsid[] = "@(#)label.c	5.2 (Berkeley) 04/22/91";
10*48505Sbostic #endif /* not lint */
1115435Sralph 
1215435Sralph #include "dumb.h"
1315435Sralph 
1415435Sralph label(string)
1515435Sralph 	char *string;
1615435Sralph {
1715435Sralph 	while(*string != '\0' && currentx < COLS){
1815435Sralph 		screenmat[currentx][currenty] = *string++;
1915435Sralph 		currentx++;
2015435Sralph 	}
2115435Sralph 	if(currentx == COLS)
2215435Sralph 		currentx = currentx-1;
2315435Sralph 
2415435Sralph }
25