From 999db06982c80bec25da63e95c47d5543c741c51 Mon Sep 17 00:00:00 2001 From: johannes Date: Fri, 9 Feb 2024 12:04:48 +0100 Subject: added read and write ctring from int --- inc/pack.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'inc/pack.h') diff --git a/inc/pack.h b/inc/pack.h index 0979877..ca96749 100644 --- a/inc/pack.h +++ b/inc/pack.h @@ -17,4 +17,10 @@ int readint(char **cp); /* the given pointer is incremented */ void writeint(int in, char **cp); +/* reads a teworlds string from given ints */ +void intstostr(const int *ints, int num, char *str); + +/* writes a teeworlds string into ints */ +void strtoint(const char *str, int num, int *ints); + #endif // PACK_H -- cgit v1.2.3