11 char *defcharset = "latin1";
28 execl("/bin/uhtml", "uhtml", "-c", defcharset, nil);
29 execl("/bin/cat", "cat", nil);
43 fprint(2, "usage: htmlfmt [-c charset] [-u URL] [-a] [-l length] [file ...]\n");
48 main(int argc, char *argv[])
59 defcharset = EARGF(usage());
78 err = loadhtml(uhtml(0));
80 for(i=0; err==nil && i<argc; i++){
82 fd = open(file, OREAD);
84 errstr(errbuf, sizeof errbuf);
88 err = loadhtml(uhtml(fd));
94 fprint(2, "htmlfmt: processing %s: %s\n", file, err);