home
·
contact
·
privacy
projects
/
plomrogue
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
init_win() now takes arguments for the designated window height and width.
[plomrogue]
/
src
/
readwrite.h
diff --git
a/src/readwrite.h
b/src/readwrite.h
index dd4e23717d75ecb4ea04a7f2dc86b631f96d1c2a..a0c8dbabcfe9691dc3ea891c9232c1de3831dd46 100644
(file)
--- a/
src/readwrite.h
+++ b/
src/readwrite.h
@@
-1,12
+1,22
@@
+/* readwrite.h:
+ *
+ * Routines for reading/writing multibyte data from/to files. They ensure a
+ * defined endianness.
+ */
+
#ifndef READWRITE_H
#define READWRITE_H
#ifndef READWRITE_H
#define READWRITE_H
-#include <stdio.h>
-#include <stdint.h>
+
+
+#include <stdio.h> /* for FILE typedef */
+#include <stdint.h> /* for uint16_t, uint32_t */
+
+
extern uint16_t read_uint16_bigendian(FILE * file);
extern uint16_t read_uint16_bigendian(FILE * file);
-extern void write_uint16_bigendian(uint16_t x, FILE * file);
extern uint32_t read_uint32_bigendian(FILE * file);
extern uint32_t read_uint32_bigendian(FILE * file);
+extern void write_uint16_bigendian(uint16_t x, FILE * file);
extern void write_uint32_bigendian(uint32_t x, FILE * file);
#endif
extern void write_uint32_bigendian(uint32_t x, FILE * file);
#endif