From 9f4b6ffc6c6095aceb0e5fccd4d73d45adbf1ca8 Mon Sep 17 00:00:00 2001 From: "madmaxoft@gmail.com" Date: Thu, 15 Nov 2012 10:58:46 +0000 Subject: Added a Printf() function that returns a new AString by value. git-svn-id: http://mc-server.googlecode.com/svn/trunk@1041 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/StringUtils.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'source/StringUtils.h') diff --git a/source/StringUtils.h b/source/StringUtils.h index 908c725ab..dbf553773 100644 --- a/source/StringUtils.h +++ b/source/StringUtils.h @@ -27,6 +27,9 @@ extern AString & AppendVPrintf(AString & str, const char * format, va_list args) /// Output the formatted text into the string extern AString & Printf (AString & str, const char * format, ...); +/// Output the formatted text into string, return string by value +extern AString Printf(const char * format, ...); + /// Add the formatted string to the existing data in the string extern AString & AppendPrintf (AString & str, const char * format, ...); -- cgit v1.2.3