• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/zip30/

Lines Matching refs:optchar

3695 /* internal settings for optchar */
3916 * Get next short option from arg. The state is stored in argnum, optchar, and
3922 * optchar - pointer to index of next char to process. Can be 0 or
3933 local unsigned long get_shortopt(args, argnum, optchar, negated, value,
3937 int *optchar;
3956 nextchar = arg + (*optchar);
3959 (*optchar) += clen;
3961 shortopt = arg + (*optchar);
3967 *optchar = 0;
3985 if (clen == 1) (*optchar)++;
3995 nextchar = arg + (*optchar) + clen;
4013 (*optchar) += clen;
4019 clen = MB_CLEN(arg + (*optchar));
4023 if (arg[(*optchar) + clen]) {
4025 if (MB_CLEN(arg + (*optchar) + clen) > 1) {
4039 (*value)[0] = *(arg + (*optchar) + clen);
4041 *optchar += clen;
4055 start = arg + (*optchar) + clen;
4071 start = arg + (*optchar) + clen;
4075 *optchar += (int)(s - start);
4084 if (arg[(*optchar) + clen]) {
4087 if (arg[(*optchar) + clen] == '=') {
4091 if (arg[(*optchar) + clen]) {
4092 if ((*value = (char *)malloc(strlen(arg + (*optchar) + clen) + 1))
4096 strcpy(*value, arg + (*optchar) + clen);
4098 *optchar = THIS_ARG_DONE;
4106 *optchar = SKIP_VALUE_ARG;
4111 if (arg[(*optchar) + clen]) {
4114 if (arg[(*optchar) + clen] == '=') {
4118 if ((*value = (char *)malloc(strlen(arg + (*optchar) + clen) + 1))
4122 strcpy(*value, arg + (*optchar) + clen);
4123 *optchar = THIS_ARG_DONE;
4132 *optchar = START_VALUE_LIST;
4134 *optchar = SKIP_VALUE_ARG;
4170 local unsigned long get_longopt(args, argnum, optchar, negated, value,
4174 int *optchar;
4262 *optchar = THIS_ARG_DONE;
4309 *optchar = START_VALUE_LIST;
4311 *optchar = SKIP_VALUE_ARG;
4368 * optchar, first_nonopt_arg, option_num, and depth (after initial
4421 * state information is stored in the parameters argnum, optchar,
4425 * set optchar = 0 and first_nonopt_arg to the first non-option argument if
4530 * int *optchar - index of next short opt in arg or special
4548 unsigned long get_option(pargs, argc, argnum, optchar, value,
4553 int *optchar;
4601 optc = *optchar;
4900 *optchar = optc;