#include "compose.h"
void
usage(void)
{
fprint(2, "compose [-t] img ...\n");
exits("usage");
}
void
main(int argc, char **argv)
{
int i, chan;
C *c;
chan = 0;
ARGBEGIN{
case 'c':
chan = strtochan(EARGF(usage()));
break;
case 't':
flag['t'] = 1;
break;
default:
usage();
}ARGEND
if(argc == 0)
usage();
c = malloc(argc*sizeof *c);
if(c == nil)
sysfatal("malloc: %r");
for(i = 0; i < argc; i++)
intimg(c + i, argv[i], -1);
composer(c, argc, chan);
exits("");
}
|