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

Function GetDataBlock

win/share/gifread.c:82–100  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

80int fclose_gif_file(void);
81
82static int
83GetDataBlock(FILE *fd, unsigned char *buf)
84{
85 unsigned char count;
86
87 if (!ReadOK(fd, &count, 1)) {
88 Fprintf(stderr, "error in getting DataBlock size\n");
89 return -1;
90 }
91
92 ZeroDataBlock = (count == 0);
93
94 if ((count != 0) && (!ReadOK(fd, buf, count))) {
95 Fprintf(stderr, "error in reading DataBlock\n");
96 return -1;
97 }
98
99 return count;
100}
101
102static void
103DoExtension(FILE *fd, int label)

Callers 3

DoExtensionFunction · 0.85
GetCodeFunction · 0.85
LWZReadByteFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected