xref: /csrg-svn/lib/libplot/f77plot/label.c (revision 22635)
1 /*
2  * Copyright (c) 1980 Regents of the University of California.
3  * All rights reserved.  The Berkeley software License Agreement
4  * specifies the terms and conditions for redistribution.
5  */
6 
7 #ifndef lint
8 static char sccsid[] = "@(#)label.c	5.1 (Berkeley) 06/07/85";
9 #endif not lint
10 
11 label_(s, len)
12 register char *s;
13 long len;
14 {
15 	char buf[260];
16 	register char *cp, *cend;
17 
18 	cp = buf;
19 	cend = cp + (len < 255 ? len : 255 );
20 	while ( cp < cend )
21 		*cp++ = *s++;
22 	*cp = 0;
23 	label( buf );
24 }
25