#include <stdio.h>
#include "rle.h"
#include "rle_raw.h"
Go to the source code of this file.
|
static char | rcsid [] = "$Header: /l/spencer/src/urt/tools/RCS/rlebox.c,v 3.0.1.3 1992/04/30 14:11:24 spencer Exp $" |
|
void main |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
Definition at line 44 of file rlebox.c.
50 char * rlefname = NULL;
51 int vflag = 0,
cflag = 0, margin = 0;
52 int xmin, xmax, ymin, ymax;
55 if (
scanargs( argc, argv,
"% v%- c%- m%-margin!d infile%s",
56 &vflag, &
cflag, &margin, &margin,
69 rle_box( &the_hdr, &xmin, &xmax, &ymin, &ymax );
85 printf( vflag ?
"xmin=%d ymin=%d xmax=%d ymax=%d\n" :
87 xmin, ymin, xmax, ymax );
89 printf( vflag ?
"xmin=%d xmax=%d ymin=%d ymax=%d\n" :
91 xmin, xmax, ymin, ymax );
int scanargs(int argc, char **argv, const char *format,...)
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)
FILE * rle_open_f(const char *prog_name, const char *f_name, const char *mode)
char * cmd_name(char **argv)
rle_hdr * rle_hdr_init(rle_hdr *the_hdr)
char rcsid[] = "$Header: /l/spencer/src/urt/tools/RCS/rlebox.c,v 3.0.1.3 1992/04/30 14:11:24 spencer Exp $" |
|
static |