xref: /original-bsd/lib/libplot/f77plot/linemd.c (revision c3e32dec)
1 /*-
2  * Copyright (c) 1980, 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[] = "@(#)linemd.c	8.1 (Berkeley) 06/04/93";
10 #endif /* not lint */
11 
12 linemd_(s, len)
13 register char *s;
14 long len;
15 {
16 	char buf[256];
17 	register char *cp, *cend;
18 
19 	cp = buf;
20 	cend = cp + (len < 255 ? len : 255 );
21 	while ( cp < cend  && *s != ' ')
22 		*cp++ = *s++;
23 	*cp = 0;
24 	linemod( buf );
25 }
26