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

Function cmp_weights

src/hack.c:4485–4493  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4483}
4484
4485staticfn int QSORTCALLBACK
4486cmp_weights(const void *p1, const void *p2)
4487{
4488 struct weight_table_entry *i1 = (struct weight_table_entry *) p1,
4489 *i2 = (struct weight_table_entry *) p2;
4490
4491 /* return (i1->wt - i2->wt); */
4492 return strcmp(i1->nm, i2->nm);
4493}
4494
4495int
4496inv_cnt(boolean incl_gold)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected