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

Function optfn_video_width

src/options.c:4603–4622  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4601
4602#ifdef MSDOS
4603staticfn int
4604optfn_video_width(
4605 int optidx UNUSED, int req, boolean negated,
4606 char *opts, char *op)
4607{
4608 if (req == do_init) {
4609 return optn_ok;
4610 }
4611 if (req == do_set) {
4612 if ((op = string_for_opt(opts, negated)) != empty_optstr)
4613 iflags.wc_video_width = strtol(op, NULL, 10);
4614 else
4615 return optn_err;
4616 return optn_ok;
4617 }
4618 if (req == get_val || req == get_cnf_val) {
4619 opts[0] = '\0';
4620 }
4621 return optn_ok;
4622}
4623
4624staticfn int
4625optfn_video_height(

Callers

nothing calls this directly

Calls 1

string_for_optFunction · 0.85

Tested by

no test coverage detected