From d436e4ca4a0043272061c64468b630168267dabe Mon Sep 17 00:00:00 2001 From: DukePyrolator Date: Sun, 13 Feb 2011 20:06:01 +0100 Subject: added Anope::printf() --- include/anope.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'include') diff --git a/include/anope.h b/include/anope.h index 56d893278..ec1d083a5 100644 --- a/include/anope.h +++ b/include/anope.h @@ -329,6 +329,15 @@ namespace Anope extern CoreExport void Unhex(const Anope::string &src, Anope::string &dest); extern CoreExport void Unhex(const Anope::string &src, char *dest); + /** Returns a sequence of data formatted as the format argument specifies. + ** After the format parameter, the function expects at least as many + ** additional arguments as specified in format. + * @param fmt Format of the Message + * @param ... any number of parameters + * @return a Anope::string + */ + extern CoreExport string printf(const char *fmt, ...); + /** Return the last error, uses errno/GetLastError() to determin this * @return An error message */ -- cgit