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

Function get_sortdisco

src/o_init.c:1209–1220  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1207#endif /* !SFCTOOL */
1208
1209void
1210get_sortdisco(char *opts, boolean cnf)
1211{
1212 const char *p = strchr(disco_order_let, flags.discosort);
1213
1214 if (!p)
1215 flags.discosort = 'o', p = disco_order_let;
1216 if (cnf)
1217 Sprintf(opts, "%c", flags.discosort);
1218 else
1219 Strcpy(opts, disco_orders_descr[p - disco_order_let]);
1220}
1221/*o_init.c*/

Callers 1

optfn_sortdiscoveriesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected