MCPcopy Create free account
hub / github.com/NetHack/NetHack / optfn_video_height

Function optfn_video_height

src/options.c:4624–4643  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4622}
4623
4624staticfn int
4625optfn_video_height(
4626 int optidx UNUSED, int req, boolean negated,
4627 char *opts, char *op)
4628{
4629 if (req == do_init) {
4630 return optn_ok;
4631 }
4632 if (req == do_set) {
4633 if ((op = string_for_opt(opts, negated)) != empty_optstr)
4634 iflags.wc_video_height = strtol(op, NULL, 10);
4635 else
4636 return optn_err;
4637 return optn_ok;
4638 }
4639 if (req == get_val || req == get_cnf_val) {
4640 opts[0] = '\0';
4641 }
4642 return optn_ok;
4643}
4644
4645#ifdef NO_TERMS
4646staticfn int

Callers

nothing calls this directly

Calls 1

string_for_optFunction · 0.85

Tested by

no test coverage detected