SCCS-vsn: usr.bin/plot/driver.c 4.3
SCCS-vsn: usr.bin/plot/crtdriver.c 4.2
SCCS-vsn: usr.bin/plot/debug.c 4.2
SCCS-vsn: usr.bin/plot/atoplot.c 4.2
SCCS-vsn: usr.bin/plot/plottoa.c 4.2
-static char sccsid[] = "@(#)atoplot.c 4.1 (Berkeley) %G%";
+static char sccsid[] = "@(#)atoplot.c 4.2 (Berkeley) %G%";
#endif
#include <stdio.h>
#endif
#include <stdio.h>
line(x0,y0,x1,y1);
break;
case 't':
line(x0,y0,x1,y1);
break;
case 't':
label(s);
break;
case 'e':
label(s);
break;
case 'e':
circle(xi,yi,r);
break;
case 'f':
circle(xi,yi,r);
break;
case 'f':
linemod( mapLineType(s) );
break;
case 'd':
linemod( mapLineType(s) );
break;
case 'd':
-gets(s,fin) char *s; FILE *fin; {
+getstr(s,fin) char *s; FILE *fin; {
for( ; *s = getc(fin); s++)
if(*s == '\n')
break;
*s = '\0';
for( ; *s = getc(fin); s++)
if(*s == '\n')
break;
*s = '\0';
-static char sccsid[] = "@(#)crtdriver.c 4.1 (Berkeley) %G%";
+static char sccsid[] = "@(#)crtdriver.c 4.2 (Berkeley) %G%";
line(x0,y0,x1,y1);
break;
case 't':
line(x0,y0,x1,y1);
break;
case 't':
label(s);
break;
case 'e':
label(s);
break;
case 'e':
circle(xi,yi,r);
break;
case 'f':
circle(xi,yi,r);
break;
case 'f':
linemod(s);
break;
default:
linemod(s);
break;
default:
-gets(s,fin) char *s; FILE *fin; {
+getstr(s,fin) char *s; FILE *fin; {
for( ; *s = getc(fin); s++)
if(*s == '\n')
break;
*s = '\0';
for( ; *s = getc(fin); s++)
if(*s == '\n')
break;
*s = '\0';
-static char sccsid[] = "@(#)debug.c 4.1 (Berkeley) %G%";
+static char sccsid[] = "@(#)debug.c 4.2 (Berkeley) %G%";
#endif
#include <stdio.h>
#endif
#include <stdio.h>
printf("line %d %d %d %d\n", x0, y0, x1, y1);
break;
case 't':
printf("line %d %d %d %d\n", x0, y0, x1, y1);
break;
case 't':
printf("label %s\n", s);
break;
case 'e':
printf("label %s\n", s);
break;
case 'e':
printf("circle\n");
break;
case 'f':
printf("circle\n");
break;
case 'f':
printf("linemod %s\n", s);
break;
default:
printf("linemod %s\n", s);
break;
default:
-gets(s,fin) char *s; FILE *fin; {
+getstr(s,fin) char *s; FILE *fin; {
for( ; *s = getc(fin); s++)
if(*s == '\n')
break;
*s = '\0';
for( ; *s = getc(fin); s++)
if(*s == '\n')
break;
*s = '\0';
-static char sccsid[] = "@(#)driver.c 4.2 (Berkeley) %G%";
+static char sccsid[] = "@(#)driver.c 4.3 (Berkeley) %G%";
#endif
#include <stdio.h>
#endif
#include <stdio.h>
line(x0,y0,x1,y1);
break;
case 't':
line(x0,y0,x1,y1);
break;
case 't':
label(s);
break;
case 'e':
label(s);
break;
case 'e':
circle(xi,yi,r);
break;
case 'f':
circle(xi,yi,r);
break;
case 'f':
linemod(s);
break;
case 'd':
linemod(s);
break;
case 'd':
-gets(s,fin) char *s; FILE *fin; {
+getstr(s,fin) char *s; FILE *fin; {
for( ; *s = getc(fin); s++)
if(*s == '\n')
break;
*s = '\0';
for( ; *s = getc(fin); s++)
if(*s == '\n')
break;
*s = '\0';
-static char sccsid[] = "@(#)plottoa.c 4.1 (Berkeley) %G%";
+static char sccsid[] = "@(#)plottoa.c 4.2 (Berkeley) %G%";
line(x0,y0,x1,y1);
break;
case 't':
line(x0,y0,x1,y1);
break;
case 't':
label(s);
break;
case 'e':
label(s);
break;
case 'e':
circle(xi,yi,r);
break;
case 'f':
circle(xi,yi,r);
break;
case 'f':
linemod(s);
break;
case 'd':
linemod(s);
break;
case 'd':
if(*s == '\n')
break;
*s = '\0';
if(*s == '\n')
break;
*s = '\0';
}
/* Print out the arguments to plot routines. */
}
/* Print out the arguments to plot routines. */