home · contact · privacy
More code re-styling and documentation.
[plomrogue] / src / readwrite.h
1 /*  readwrite.h:
2  *
3  *  Routines for reading/writing multibyte data from/to files. They ensure a
4  *  defined endianness.
5  */
6
7 #ifndef READWRITE_H
8 #define READWRITE_H
9
10 #include <stdio.h>
11 #include <stdint.h>
12
13 extern uint16_t read_uint16_bigendian(FILE * file);
14 extern uint32_t read_uint32_bigendian(FILE * file);
15 extern void write_uint16_bigendian(uint16_t x, FILE * file);
16 extern void write_uint32_bigendian(uint32_t x, FILE * file);
17
18 #endif