29 static char rcs_ident[] =
"$Id: rlesetbg.c,v 3.0.1.1 1992/01/23 20:44:32 spencer Exp $";
42 int *new_back = NULL, nback = 0;
43 int overlay_flag = 0, backcolor_flag = 0, oflag = 0;
44 rle_hdr in_hdr, out_hdr;
45 char * fname = NULL, *out_fname = NULL;
46 FILE *outfile = stdout;
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 )
FILE * rle_open_f(char *prog_name, char *file_name, char *mode)
rle_hdr * rle_hdr_cp(rle_hdr *from_hdr, rle_hdr *to_hdr)
void rle_cp(rle_hdr *in_hdr, rle_hdr *the_hdr)
void rle_names(rle_hdr *the_hdr, const char *pgmname, const char *fname, int img_num)
char * cmd_name(char **argv)
void main(int argc, char **argv)
int rle_get_setup(rle_hdr *the_hdr)
int rle_get_error(int code, const char *pgmname, const char *fname)
int scanargs(int argc, char **argv, const char *format,...)
void rle_addhist(argv, rle_hdr *in_hdr, rle_hdr *out_hdr)
void rle_put_setup(rle_hdr *the_hdr)
rle_hdr * rle_hdr_init(rle_hdr *the_hdr)