xref: /original-bsd/lib/libplot/f77plot/label.c (revision bd226a66)
1 /*-
2  * Copyright (c) 1980 The Regents of the University of California.
3  * All rights reserved.
4  *
5  * %sccs.include.proprietary.c%
6  */
7 
8 #ifndef lint
9 static char sccsid[] = "@(#)label.c	5.2 (Berkeley) 04/22/91";
10 #endif /* not lint */
11 
12 label_(s, len)
13 register char *s;
14 long len;
15 {
16 	char buf[260];
17 	register char *cp, *cend;
18 
19 	cp = buf;
20 	cend = cp + (len < 255 ? len : 255 );
21 	while ( cp < cend )
22 		*cp++ = *s++;
23 	*cp = 0;
24 	label( buf );
25 }
26