| 80 | int fclose_gif_file(void); |
| 81 | |
| 82 | static int |
| 83 | GetDataBlock(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 | |
| 102 | static void |
| 103 | DoExtension(FILE *fd, int label) |
no outgoing calls
no test coverage detected