42 int *new_back = NULL, nback = 0;
45 char *
fname = NULL, *out_fname = NULL;
53 "% DO%- c%-bgcolor!*d o%-outfile!s infile%s",
54 &overlay_flag, &backcolor_flag,
56 &
oflag, &out_fname, &fname ) == 0)
60 if (overlay_flag == 2 && backcolor_flag)
62 fprintf(stderr,
"%s: Delete or new color, but not both\n",
74 if ( backcolor_flag && nback < in_hdr.
ncolors )
76 fprintf( stderr,
"Need %d colors, only %d supplied.\n",
88 if ( backcolor_flag != 0 )
93 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)