summaryrefslogtreecommitdiff
path: root/src/string.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2011-05-01 19:51:52 +0000
committerrubidium <rubidium@openttd.org>2011-05-01 19:51:52 +0000
commit5a620d1c6592057b500f0889eef8949dc1e95e4b (patch)
treedabae6247490fdea860bea292bb8eee49ce46fe4 /src/string.cpp
parent1a515e6344028854c855671c19f49d8f869eb18f (diff)
downloadopenttd-5a620d1c6592057b500f0889eef8949dc1e95e4b.tar.xz
(svn r22406) -Document: some more "random-ish" tidbits
Diffstat (limited to 'src/string.cpp')
-rw-r--r--src/string.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/string.cpp b/src/string.cpp
index 1ba6f15fb..7aa081c45 100644
--- a/src/string.cpp
+++ b/src/string.cpp
@@ -160,7 +160,11 @@ char *strecpy(char *dst, const char *src, const char *last)
return dst;
}
-
+/**
+ * Format, "printf", into a newly allocated string.
+ * @param str The formatting string.
+ * @return The formatted string. You must free this!
+ */
char *CDECL str_fmt(const char *str, ...)
{
char buf[4096];