42 int xlen, ylen, xpos, ypos,
posflag=0;
43 int oflag = 0, incflag=0, xinc, yinc;
44 char * infilename = NULL, *out_fname = NULL;
53 "% p%-xpos!dypos!d P%-xinc!dyinc!d o%-outfile!s infile%s",
54 &posflag, &xpos, &ypos, &incflag, &xinc, &yinc,
55 &oflag, &out_fname, &infilename) == 0)
81 out_hdr.
xmax = xpos + xlen;
82 out_hdr.
ymax = ypos + ylen;
100 if ((out_hdr.
xmin < 0) || (out_hdr.
ymin < 0))
102 fprintf(stderr,
"Negative boundaries are not allowed!!!\n");
108 rle_cp( &in_hdr, &out_hdr );
int scanargs(int argc, char **argv, const char *format,...)
void rle_cp(rle_hdr *in_hdr, rle_hdr *out_hdr)
void rle_addhist(char *argv[], rle_hdr *in_hdr, rle_hdr *out_hdr)
void rle_names(rle_hdr *the_hdr, const char *pgmname, const char *fname, int img_num)
int rle_get_setup(rle_hdr *the_hdr)
int rle_get_error(int code, const char *pgmname, const char *fname)
rle_hdr * rle_hdr_cp(rle_hdr *from_hdr, rle_hdr *to_hdr)
FILE * rle_open_f(const char *prog_name, const char *f_name, const char *mode)
void rle_put_setup(rle_hdr *the_hdr)
char * cmd_name(char **argv)
rle_hdr * rle_hdr_init(rle_hdr *the_hdr)