Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void WriteByteFromShort(short out, FILE * outFile)
- {
- char b = (char)out;
- fwrite(&b, sizeof(Uint8), 1, outFile);
- }
- short ReadByteAsShort(FILE * inFile)
- {
- char b;
- fread(&b, sizeof(Uint8), 1, inFile);
- return (short)b;
- }
Add Comment
Please, Sign In to add comment