2 // fileio.cpp: File I/O functions
5 // (C) 2023 Underground Software
10 uint32_t ReadLong(FILE * file)
14 for(int i=0; i<4; i++)
15 r = (r << 8) | fgetc(file);
20 void WriteLong(FILE * file, uint32_t l)
22 for(int i=0; i<4; i++)
24 fputc((l >> 24) & 0xFF, file);