summaryrefslogtreecommitdiff
path: root/inc
diff options
context:
space:
mode:
authorjohannes <johannes.herman@gmail.com>2024-02-07 15:43:27 +0100
committerjohannes <johannes.herman@gmail.com>2024-02-07 15:43:27 +0100
commitab6cb49b0b875b5c27510dc57fe3767bfd074dae (patch)
tree716accb128e75c11da1e110421dcfcfec44adace /inc
parent116de038d3d024232d3640f499a8fb21f1c557fd (diff)
added packed int writer
Diffstat (limited to 'inc')
-rw-r--r--inc/pack.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/inc/pack.h b/inc/pack.h
index 55ebf4e..49e581c 100644
--- a/inc/pack.h
+++ b/inc/pack.h
@@ -13,4 +13,8 @@ void tobigendian(const int in, unsigned char out[4]);
/* the given pointer is incremented */
int readint(unsigned char **cp);
+/* writes given int to teeworlds packed */
+/* the given pointer is incremented */
+void writeint(int in, char **cp);
+
#endif // PACK_H