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

Function discardexcess

src/topten.c:207–215  ·  view source on GitHub ↗

throw away characters until current record has been entirely consumed */

Source from the content-addressed store, hash-verified

205
206/* throw away characters until current record has been entirely consumed */
207staticfn void
208discardexcess(FILE *rfile)
209{
210 int c;
211
212 do {
213 c = fgetc(rfile);
214 } while (c != '\n' && c != EOF);
215}
216
217DISABLE_WARNING_FORMAT_NONLITERAL
218

Callers 1

readentryFunction · 0.85

Calls 1

fgetcFunction · 0.85

Tested by

no test coverage detected