| 1169 | } |
| 1170 | |
| 1171 | int parse_options_end(struct parse_opt_ctx_t *ctx) |
| 1172 | { |
| 1173 | if (ctx->flags & PARSE_OPT_ONE_SHOT) |
| 1174 | return ctx->total - ctx->argc; |
| 1175 | |
| 1176 | MOVE_ARRAY(ctx->out + ctx->cpidx, ctx->argv, ctx->argc); |
| 1177 | ctx->out[ctx->cpidx + ctx->argc] = NULL; |
| 1178 | return ctx->cpidx + ctx->argc; |
| 1179 | } |
| 1180 | |
| 1181 | int parse_options(int argc, const char **argv, |
| 1182 | const char *prefix, |
no outgoing calls
no test coverage detected