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