summaryrefslogtreecommitdiff
path: root/src/pack.c
diff options
context:
space:
mode:
authorjohannes <johannes.herman@gmail.com>2024-02-06 12:54:10 +0100
committerjohannes <johannes.herman@gmail.com>2024-02-06 12:54:10 +0100
commitf8e8e6622eda179bc6f88b0c064fb2629c98fac2 (patch)
treeccbe6f1bffcf4fc804290cd1cf7e2726455e1f8c /src/pack.c
parent808883b430e869413046b87a12095068677fe383 (diff)
moved reverseint to pack
Diffstat (limited to 'src/pack.c')
-rw-r--r--src/pack.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/pack.c b/src/pack.c
index f7be2c8..0fa3274 100644
--- a/src/pack.c
+++ b/src/pack.c
@@ -1,5 +1,10 @@
#include <stdio.h>
+int reverseint(const unsigned char in[4])
+{
+ return (in[0] << 24) | (in[1] << 16) | (in[2] << 8) | in[3];
+}
+
int readint(unsigned char **cp)
{
int result = 0;