Lines Matching refs:opt
29 * @opt: Option being parsed when an error occurs. @opt is only
32 int opt;
82 * int opt, argc = ARRAY_SIZE(argv) - 1;
86 * while ((opt = getopt(&gs, argc, argv, "a::b:c")) != -1)
87 * printf("opt = %c, index = %d, arg = \"%s\"\n", opt, gs.index, gs.arg);
92 * opt = c, index = 1, arg = "<NULL>"
93 * opt = b, index = 2, arg = "x"
94 * opt = a, index = 4, arg = "foo"
104 * * ``'?'`` if we encounter an option not in @optstring. @gs.opt is set to
107 * option. @gs.opt is set to the option missing its argument.