From ab6cb49b0b875b5c27510dc57fe3767bfd074dae Mon Sep 17 00:00:00 2001 From: johannes Date: Wed, 7 Feb 2024 15:43:27 +0100 Subject: added packed int writer --- inc/pack.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'inc') 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 -- cgit v1.2.3