Add missing credit for Esperanto translation
[neverball.git] / share / binary.h
blob828cdfabff3c2cc59fe875c66ba62710121b04d8
1 #ifndef BINARY_H
2 #define BINARY_H
4 #include <string.h>
6 #include "fs.h"
8 /*---------------------------------------------------------------------------*/
10 #define FLOAT_BYTES 4
11 #define INDEX_BYTES 4
12 #define SHORT_BYTES 2
13 #define ARRAY_BYTES(n) (FLOAT_BYTES * (n))
14 #define STRING_BYTES(s) (strlen(s) + 1)
16 void put_float(fs_file, float);
17 void put_index(fs_file, int);
18 void put_short(fs_file, short);
19 void put_array(fs_file, const float *, size_t);
21 float get_float(fs_file);
22 int get_index(fs_file);
23 short get_short(fs_file);
24 void get_array(fs_file, float *, size_t);
26 void put_string(fs_file fout, const char *);
27 void get_string(fs_file fin, char *, size_t);
29 /*---------------------------------------------------------------------------*/
31 #endif