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

Function write_tibheader

sys/msdos/tile2bin.c:224–231  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

222}
223
224static void
225write_tibheader(FILE *fileptr, struct tibhdr_struct *tibhdr)
226{
227 if (fseek(fileptr, 0L, SEEK_SET)) {
228 Fprintf(stderr, "Error writing header to tile file\n");
229 }
230 fwrite(tibhdr, sizeof(struct tibhdr_struct), 1, fileptr);
231}
232
233static void
234build_tibtile(pixel (*pixels)[TILE_X], boolean statues)

Callers 1

mainFunction · 0.85

Calls 2

fseekFunction · 0.85
fwriteFunction · 0.85

Tested by

no test coverage detected