4.4BSD snapshot (revision 8.1); add 1993 to copyright
[unix-history] / usr / src / lib / libplot / grn / label.c
CommitLineData
43e73d1b 1/*-
11794364
KB
2 * Copyright (c) 1980, 1986, 1993
3 * The Regents of the University of California. All rights reserved.
43e73d1b
KB
4 *
5 * %sccs.include.proprietary.c%
b7a876af
KS
6 */
7
8#ifndef lint
11794364 9static char sccsid[] = "@(#)label.c 8.1 (Berkeley) %G%";
43e73d1b 10#endif /* not lint */
b7a876af
KS
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 */
25label(s)
26char *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}