/* CATFORMAT -- Change catalog formats. */ #include static char *help[] = { "Change catalog formats.", " usage: catformat catalog ...", " Arguments: List of catalogs to be converted", 0 }; main (argc, argv) int argc; char *argv[]; { int i, newtype; if (argc < 2 || argv[1][0] == '^') { for (i = 0; help[i] != 0; i++) fprintf (stderr, "%s\n", help[i]); exit (0); } newtype = 4; for (i = 1; i < argc; i++) { catformat (argv[i], "catformat.tmp", &newtype); c_rename ("catformat.tmp", argv[i]); } }