home · contact · privacy
More documentation and re-styling of code according to new rules.
[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
11
12 #include <stdio.h> /* for FILE typedef */
13 #include <stdint.h> /* for uint16_t, uint32_t */
14
15
16
17 extern uint16_t read_uint16_bigendian(FILE * file);
18 extern uint32_t read_uint32_bigendian(FILE * file);
19 extern void write_uint16_bigendian(uint16_t x, FILE * file);
20 extern void write_uint32_bigendian(uint32_t x, FILE * file);
21
22 #endif