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

Function exportascii_sfo_bitfield

util/sfexpasc.c:280–286  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

278}
279
280void
281exportascii_sfo_bitfield(NHFILE *nhfp, uint8_t *d_bitfield, const char *myname UNUSED, int bflen UNUSED)
282{
283 /* for bitfields, cnt is the number of bits, not an array */
284 Sprintf(outbuf, "%hu", (unsigned short) *d_bitfield);
285 put_savefield(nhfp, outbuf, sizeof outbuf);
286}
287
288void
289exportascii_sfo_boolean(NHFILE *nhfp, boolean *d_boolean, const char *myname UNUSED)

Callers

nothing calls this directly

Calls 1

put_savefieldFunction · 0.85

Tested by

no test coverage detected