| 2546 | } |
| 2547 | |
| 2548 | staticfn int |
| 2549 | optfn_name( |
| 2550 | int optidx, int req, boolean negated UNUSED, |
| 2551 | char *opts, char *op) |
| 2552 | { |
| 2553 | if (req == do_init) { |
| 2554 | return optn_ok; |
| 2555 | } |
| 2556 | if (req == do_set) { |
| 2557 | /* name:string */ |
| 2558 | |
| 2559 | if ((op = string_for_env_opt(allopt[optidx].name, opts, FALSE)) |
| 2560 | != empty_optstr) { |
| 2561 | nmcpy(svp.plname, op, PL_NSIZ); |
| 2562 | } else |
| 2563 | return optn_err; |
| 2564 | return optn_ok; |
| 2565 | } |
| 2566 | if (req == get_val || req == get_cnf_val) { |
| 2567 | Sprintf(opts, "%s", svp.plname); |
| 2568 | return optn_ok; |
| 2569 | } |
| 2570 | return optn_ok; |
| 2571 | } |
| 2572 | |
| 2573 | staticfn int |
| 2574 | optfn_number_pad( |
nothing calls this directly
no test coverage detected