MCPcopy Index your code
hub / github.com/NetHack/NetHack / string_for_env_opt

Function string_for_env_opt

src/options.c:6682–6690  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6680}
6681
6682staticfn char *
6683string_for_env_opt(const char *optname, char *opts, boolean val_optional)
6684{
6685 if (!go.opt_initial) {
6686 rejectoption(optname);
6687 return empty_optstr;
6688 }
6689 return string_for_opt(opts, val_optional);
6690}
6691
6692staticfn void
6693bad_negation(const char *optname, boolean with_parameter)

Callers 15

optfn_msghistoryFunction · 0.85
optfn_nameFunction · 0.85
optfn_pettypeFunction · 0.85
optfn_pickup_burdenFunction · 0.85
optfn_soundlibFunction · 0.85
optfn_sortdiscoveriesFunction · 0.85
optfn_sortlootFunction · 0.85
optfn_sortvanquishedFunction · 0.85
optfn_videocolorsFunction · 0.85
optfn_videoshadesFunction · 0.85
optfn_videoFunction · 0.85
optfn_whatis_coordFunction · 0.85

Calls 2

rejectoptionFunction · 0.85
string_for_optFunction · 0.85

Tested by

no test coverage detected