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

Function unsaveoptstr

src/options.c:775–783  ·  view source on GitHub ↗

discard specific saved option string */

Source from the content-addressed store, hash-verified

773
774/* discard specific saved option string */
775staticfn void
776unsaveoptstr(int optidx, int ophase)
777{
778 int roleoptindx = opt2roleopt(optidx);
779
780 if (roleoptvals[roleoptindx][ophase])
781 free((genericptr_t) roleoptvals[roleoptindx][ophase]),
782 roleoptvals[roleoptindx][ophase] = 0;
783}
784
785/* discard all saved option strings */
786void

Callers 1

freeroleoptvalsFunction · 0.85

Calls 1

opt2roleoptFunction · 0.85

Tested by

no test coverage detected