Lines Matching refs:argv
49 int rand_main(int argc, char **argv) in rand_main() argument
61 prog = opt_init(argc, argv, rand_options); in rand_main()
98 argv = opt_rest(); in rand_main()
107 if (!strcmp(argv[0], "max")) { in rand_main()
125 while (argv[0][factoridx]) { in rand_main()
126 if (!isdigit((int)(argv[0][factoridx]))) { in rand_main()
127 switch(argv[0][factoridx]) { in rand_main()
142 &argv[0][factoridx]); in rand_main()
150 if (shift != 0 && strlen(&argv[0][factoridx]) != 1) { in rand_main()
152 &argv[0][factoridx]); in rand_main()
158 argv[0][factoridx] = '\0'; in rand_main()
160 if ((scaled_num == 0) && (!opt_long(argv[0], &num) || num <= 0)) in rand_main()