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

Function sfo_char

src/sfbase.c:248–262  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

246SF_X(uint8_t, bitfield)
247
248void
249sfo_char(NHFILE *nhfp, char *d_char, const char *myname, int cnt)
250{
251 if (nhfp->fplog)
252 sf_log(nhfp, myname, sizeof(char), cnt, Sfvalue_char(d_char, cnt));
253 if (nhfp->structlevel) {
254 (*sfoprocs[nhfp->fnidx].fn.sf_char)(nhfp, d_char, myname, cnt);
255 } else {
256 FILE *save_fplog = nhfp->fplog;
257
258 nhfp->fplog = 0;
259 (*sfoflprocs[nhfp->fnidx].fn_x.sf_char)(nhfp, d_char, myname, cnt);
260 nhfp->fplog = save_fplog;
261 }
262}
263
264void
265sfi_char(NHFILE *nhfp, char *d_char, const char *myname, int cnt)

Callers 1

sfi_charFunction · 0.85

Calls 1

sf_logFunction · 0.85

Tested by

no test coverage detected