Lines Matching refs:argc
20 main (int argc, char **argv) in main() argument
38 if (argc < 2 || !strcmp (argv[1], "--help")) in main()
45 if (strcmp ("-", argv[argc - 1]) == 0) in main()
52 in = fopen (argv[argc - 1], "rb"); in main()
57 "Error: can't open file %s.\n", argv[argc - 1]); in main()
67 "Error: %s is not a valid PNG file.\n", argv[argc - 1]); in main()
71 for (i = 1; (i < (argc - 1)); i++) in main()
82 if (i == (argc - 2)) in main()
114 if (i == (argc - 2)) in main()
273 unlink (argv[argc - 1]); in main()
275 if (rename (outFn, argv[argc - 1]) != 0) in main()