#include <stdio.h>
#include "rle.h"
#include "rle_raw.h"
Go to the source code of this file.
void main |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
Definition at line 32 of file rleaddeof.c.
36 char *
infname = NULL, *outfname = NULL;
45 if (
scanargs( argc, argv,
"% o%-outfile!s infile%s",
46 &oflag, &outfname, &infname ) == 0 )
59 outfile =
rle_open_f(
"rleaddeof", outfname,
"w" );
66 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_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)