version 1.7, 2014/08/28 13:55:19 |
version 1.8, 2014/08/28 14:15:28 |
|
|
|
|
if (opt->type == OPTION_ARG || |
if (opt->type == OPTION_ARG || |
opt->type == OPTION_ARG_FORMAT || |
opt->type == OPTION_ARG_FORMAT || |
|
opt->type == OPTION_ARG_FUNC || |
opt->type == OPTION_ARG_INT) { |
opt->type == OPTION_ARG_INT) { |
if (++i >= argc) { |
if (++i >= argc) { |
fprintf(stderr, |
fprintf(stderr, |
|
|
return (1); |
return (1); |
} |
} |
*opt->opt.value = fmt; |
*opt->opt.value = fmt; |
|
break; |
|
|
|
case OPTION_ARG_FUNC: |
|
if (opt->opt.func(opt, argv[i]) != 0) |
|
return (1); |
break; |
break; |
|
|
case OPTION_ARG_INT: |
case OPTION_ARG_INT: |