diff options
author | Przemyslaw Pawelczyk <przemoc@gmail.com> | 2018-01-23 15:36:20 +0100 |
---|---|---|
committer | Przemyslaw Pawelczyk <przemoc@gmail.com> | 2018-01-23 15:36:20 +0100 |
commit | 076fc6198041d58705c2decc3596d12910284bc4 (patch) | |
tree | f438907b9eb8d5bcbdd66dc79ee160ef7488577e /src/utils.c | |
parent | 75c68929c302b7d3cca77c3cf542dd299d18394a (diff) |
Fix documentation: integers are stored in little-endian byte order.
David misdocumented read/write int functions back in commit
5fed2f9169fdd0585cc83ff0fa8210d97da77cb2 (2007-05-19) and later it
probably got copy-pasted to the documentation of file format.
Diffstat (limited to 'src/utils.c')
-rw-r--r-- | src/utils.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/utils.c b/src/utils.c index 4cba896..0485216 100644 --- a/src/utils.c +++ b/src/utils.c @@ -116,7 +116,7 @@ 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) { @@ -142,7 +142,7 @@ write_string(const char *string, FILE *to) xfwrite(string, strlen(string) + 1, 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) { |