summaryrefslogtreecommitdiff
path: root/inc/pack.h
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 /inc/pack.h
parent808883b430e869413046b87a12095068677fe383 (diff)
moved reverseint to pack
Diffstat (limited to 'inc/pack.h')
-rw-r--r--inc/pack.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/inc/pack.h b/inc/pack.h
index d04d6ca..581bcf9 100644
--- a/inc/pack.h
+++ b/inc/pack.h
@@ -3,6 +3,9 @@
#include <stdio.h>
+/* reads a big endian int into an int */
+int reverseint(const unsigned char in[4]);
+
/* reads a teeworlds packed int from given buffer */
/* the given pointer is incremented */
int readint(unsigned char **cp);