1 /*- 2 * Copyright (c) 1980, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * %sccs.include.proprietary.c% 6 */ 7 8 #ifndef lint 9 static char sccsid[] = "@(#)label.c 8.1 (Berkeley) 06/04/93"; 10 #endif /* not lint */ 11 12 #include "dumb.h" 13 14 label(string) 15 char *string; 16 { 17 while(*string != '\0' && currentx < COLS){ 18 screenmat[currentx][currenty] = *string++; 19 currentx++; 20 } 21 if(currentx == COLS) 22 currentx = currentx-1; 23 24 } 25