diff options
Diffstat (limited to 'src/utils.h')
-rw-r--r-- | src/utils.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/utils.h b/src/utils.h index 2dd61c9..b6e5958 100644 --- a/src/utils.h +++ b/src/utils.h @@ -57,7 +57,7 @@ void binary_print(const char *s, ssize_t len); /* Writes data to a file or exits on failure */ void xfwrite(const void *ptr, size_t size, FILE *stream); -/* Writes an int to a file, using len bytes, in bigendian order */ +/* Writes an int to a file, using len bytes, in little-endian order */ void write_int(uint64_t value, size_t len, FILE *to); /* Writes a binary string to a file */ @@ -66,7 +66,7 @@ void write_binary_string(const char *string, size_t len, FILE *to); /* Writes a normal C string to a file */ void write_string(const char *string, FILE *to); -/* Reads an int from a file, using len bytes, in bigendian order */ +/* Reads an int from a file, using len bytes, in little-endian order */ uint64_t read_int(char **from, size_t len, const char *max); /* Reads a binary string from a file */ |