static char sccsid
[] = "@(#)atoplot.c 4.2 (Berkeley) %G%";
main(argc
,argv
) char **argv
; {
deltx
= atoi(&argv
[1][2]) - 1;
delty
= atoi(&argv
[1][2]) - 1;
if ((fin
= fopen(argv
[1], "r")) == NULL
) {
fprintf(stderr
, "can't open %s\n", argv
[1]);
int xi
,yi
,x0
,y0
,x1
,y1
,r
,dx
,n
,i
;
while((c
=getc(fin
)) != EOF
){
linemod( mapLineType(s
) );
for(i
=0; i
<n
; i
++)pat
[i
] = getsi(fin
);
while( (c
= getc( fin
)) != '\n' ) {
getsi(fin
) FILE *fin
; { /* get an integer stored in 2 ascii bytes. */
if ( fscanf(fin
, " %d", & i
) != 1 ) {
getstr(s
,fin
) char *s
; FILE *fin
; {
for( ; *s
= getc(fin
); s
++)
"solid", /* line type 0 */
"solid", /* line type 1 */
"dotted", /* line type 2 */
"dotdashed", /* line type 3 */
"shortdashed", /* line type 4 */
"longdashed", /* line type 5 */
"dotlongdash", /* line type 6 */
"dotshortdash", /* line type 7 */
"dotdotdash", /* line type 8 */
if ( sscanf(cp
, "%d", &i
) == 1 ) {
if ( i
< 0 || i
> sizeof(lineMap
)/sizeof(char *) ) {