summaryrefslogtreecommitdiff
path: root/inc/pack.h
diff options
context:
space:
mode:
authorjohannes <johannes.herman@gmail.com>2024-02-09 12:04:48 +0100
committerjohannes <johannes.herman@gmail.com>2024-02-09 12:04:48 +0100
commit999db06982c80bec25da63e95c47d5543c741c51 (patch)
treef67cd81abf806b3ee07accc6ba6164e290cdb88f /inc/pack.h
parent8b39bbde8684a6524686ec55a6e189f226866934 (diff)
added read and write ctring from int
Diffstat (limited to 'inc/pack.h')
-rw-r--r--inc/pack.h6
1 files changed, 6 insertions, 0 deletions
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