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

Function size_wseg

src/worm.c:826–830  ·  view source on GitHub ↗

for size_monst(cmd.c) to support #stats */

Source from the content-addressed store, hash-verified

824
825/* for size_monst(cmd.c) to support #stats */
826int
827size_wseg(struct monst *worm)
828{
829 return (int) (count_wsegs(worm) * sizeof (struct wseg));
830}
831
832/* count_wsegs()
833 * returns the number of segments that a worm has.

Callers 1

size_monstFunction · 0.85

Calls 1

count_wsegsFunction · 0.85

Tested by

no test coverage detected