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

Function exportascii_sfo_boolean

util/sfexpasc.c:288–296  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

286}
287
288void
289exportascii_sfo_boolean(NHFILE *nhfp, boolean *d_boolean, const char *myname UNUSED)
290{
291 if (nhfp->fpdebug)
292 fprintf(nhfp->fpdebug, "(%s)\n", (*d_boolean) ? "TRUE" : "FALSE");
293 Sprintf(outbuf, "%s", *d_boolean ? "true" : "false");
294 put_savefield(nhfp, outbuf, sizeof outbuf);
295 d_boolean++;
296}
297
298void exportascii_sfo_genericptr(NHFILE *nhfp, genericptr_t *d_genericptr,
299 const char *myname UNUSED);

Callers

nothing calls this directly

Calls 2

fprintfFunction · 0.85
put_savefieldFunction · 0.85

Tested by

no test coverage detected