/* Copyright(c) 1986 Association of Universities for Research in Astronomy Inc. */ #include #include #include #include #define NBITS_CHAR 8 /* number of bits in a char */ #define MASK 64 /* printronix raster flag */ #define START_LINE "\005" /* start of raster line control code */ #define END_LINE "\012" /* end of raster line control code */ #define START_PAGE "\014" /* form feed */ /* PRINTRONIX translator from the SGI bitmap file to the STDOUT */ int main (int argc, char *argv[]) { FILE *fpi; char *buffer; int n, len_buf, nlines; int index; /* goes through all 8 files */ int px, py; px = atoi (argv[1]); py = atoi (argv[2]); len_buf = px/NBITS_CHAR; buffer = (char *) malloc (len_buf); for (index=3; index