xref: /csrg-svn/lib/libplot/f77plot/linemd.c (revision 22637)
1*22637Sdist /*
2*22637Sdist  * Copyright (c) 1980 Regents of the University of California.
3*22637Sdist  * All rights reserved.  The Berkeley software License Agreement
4*22637Sdist  * specifies the terms and conditions for redistribution.
5*22637Sdist  */
6*22637Sdist 
717635Sjak #ifndef lint
8*22637Sdist static char sccsid[] = "@(#)linemd.c	5.1 (Berkeley) 06/07/85";
9*22637Sdist #endif not lint
10*22637Sdist 
1117635Sjak linemd_(s, len)
1217635Sjak register char *s;
1317635Sjak long len;
1417635Sjak {
1517635Sjak 	char buf[256];
1617635Sjak 	register char *cp, *cend;
1717635Sjak 
1817635Sjak 	cp = buf;
1917635Sjak 	cend = cp + (len < 255 ? len : 255 );
2017635Sjak 	while ( cp < cend  && *s != ' ')
2117635Sjak 		*cp++ = *s++;
2217635Sjak 	*cp = 0;
2317635Sjak 	linemod( buf );
2417635Sjak }
25