From 0c325e10dab3223cc5bef75e2bd0d1719457a740 Mon Sep 17 00:00:00 2001 From: tron Date: Fri, 25 Mar 2005 11:32:58 +0000 Subject: (svn r2057) Add InlineString() to make _userstring construction a bit cleaner. --- strings.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'strings.h') diff --git a/strings.h b/strings.h index 8cf629255..f3cd34d1d 100644 --- a/strings.h +++ b/strings.h @@ -1,6 +1,14 @@ #ifndef STRINGS_H #define STRINGS_H +static inline char* InlineString(char* buf, uint16 string) +{ + *buf++ = '\x81'; + *buf++ = string & 0xFF; + *buf++ = string >> 8; + return buf; +} + char *GetString(char *buffr, uint16 string); void InjectDParam(int amount); -- cgit v1.2.3-54-g00ecf