summaryrefslogtreecommitdiffstats
path: root/src/misc/vec
diff options
context:
space:
mode:
Diffstat (limited to 'src/misc/vec')
-rw-r--r--src/misc/vec/vecStr.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/misc/vec/vecStr.h b/src/misc/vec/vecStr.h
index 25a83c70..f8452bdd 100644
--- a/src/misc/vec/vecStr.h
+++ b/src/misc/vec/vecStr.h
@@ -634,6 +634,12 @@ static inline void Vec_StrAppend( Vec_Str_t * p, const char * pString )
{
Vec_StrPrintStr( p, pString );
}
+static inline void Vec_StrCopy( Vec_Str_t * p, const char * pString )
+{
+ Vec_StrClear( p );
+ Vec_StrAppend( p, pString );
+ Vec_StrPush( p, '\0' );
+}
/**Function*************************************************************