Lines Matching defs:file_short
138 unsigned char file_short[2];
140 file_short[0] = (unsigned char) ((s & (unsigned) 0xff00) >> 8);
141 file_short[1] = (unsigned char) (s & 0xff);
142 if (fwrite((char *) file_short, (int) sizeof(file_short), 1, file) != 1)
150 unsigned char file_short[2];
152 file_short[0] = (unsigned char) (((unsigned) s & (unsigned) 0xff00) >> 8);
153 file_short[1] = (unsigned char) (s & 0xff);
154 if (fwrite((char *) file_short, (int) sizeof(file_short), 1, file) != 1)
189 unsigned char file_short[2];
191 if (fread((char *) file_short, (int) sizeof(file_short), 1, file) != 1)
193 *shortp = (unsigned short) (file_short[0] * 256 + file_short[1]);
200 unsigned char file_short[2];
202 if (fread((char *) file_short, (int) sizeof(file_short), 1, file) != 1)
204 *shortp = (short) (file_short[0] * 256 + file_short[1]);