Lines Matching refs:argv
791 int main(int argc, char** argv) { in main() argument
794 if (argc >= 2 && strcmp(argv[1], "-z") == 0) { in main()
797 ++argv; in main()
802 if (argc >= 3 && strcmp(argv[1], "-b") == 0) { in main()
804 if (stat(argv[2], &st) != 0) { in main()
805 printf("failed to stat bonus file %s: %s\n", argv[2], strerror(errno)); in main()
810 FILE* f = fopen(argv[2], "rb"); in main()
812 printf("failed to open bonus file %s: %s\n", argv[2], strerror(errno)); in main()
816 printf("failed to read bonus file %s: %s\n", argv[2], strerror(errno)); in main()
822 argv += 2; in main()
828 argv[0]); in main()
839 if (ReadZip(argv[1], &num_src_chunks, &src_chunks, 1) == NULL) { in main()
843 if (ReadZip(argv[2], &num_tgt_chunks, &tgt_chunks, 0) == NULL) { in main()
848 if (ReadImage(argv[1], &num_src_chunks, &src_chunks) == NULL) { in main()
852 if (ReadImage(argv[2], &num_tgt_chunks, &tgt_chunks) == NULL) { in main()
1004 FILE* f = fopen(argv[3], "wb"); in main()