xref: /original-bsd/lib/libplot/grn/label.c (revision c3e32dec)
1 /*-
2  * Copyright (c) 1980, 1986, 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 "grnplot.h"
13 
14 /*---------------------------------------------------------
15  *	This routine places a label starting at the current
16  *	position.
17  *
18  *	Results:	None.
19  *
20  *	Side Effects:
21  *	The string indicated by s starting at (curx, cury).
22  *	The current position is NOT updated.
23  *---------------------------------------------------------
24  */
25 label(s)
26 char *s;
27 {
28 	if (!ingrnfile) erase();
29 	endvector();
30 	printf("BOTLEFT\n");
31 	outcurxy();
32 	printf("*\n%d %d\n%d %s\n",FONTSTYLE,FONTSIZE,strlen(s)-1,s);
33 }
34