date and time created 83/11/10 11:53:55 by ralph
authorRalph Campbell <ralph@ucbvax.Berkeley.EDU>
Fri, 11 Nov 1983 03:53:55 +0000 (19:53 -0800)
committerRalph Campbell <ralph@ucbvax.Berkeley.EDU>
Fri, 11 Nov 1983 03:53:55 +0000 (19:53 -0800)
SCCS-vsn: lib/libplot/dumb/label.c 4.1

usr/src/lib/libplot/dumb/label.c [new file with mode: 0644]

diff --git a/usr/src/lib/libplot/dumb/label.c b/usr/src/lib/libplot/dumb/label.c
new file mode 100644 (file)
index 0000000..d351f26
--- /dev/null
@@ -0,0 +1,17 @@
+#ifndef lint
+static char sccsid[] = "@(#)label.c    4.1 (Berkeley) %G%";
+#endif
+
+#include "dumb.h"
+
+label(string)
+       char *string;
+{
+       while(*string != '\0' && currentx < COLS){
+               screenmat[currentx][currenty] = *string++;
+               currentx++;
+       }
+       if(currentx == COLS)
+               currentx = currentx-1;
+
+}