summaryrefslogtreecommitdiff
path: root/openttd.c
diff options
context:
space:
mode:
authortron <tron@openttd.org>2005-07-29 21:52:20 +0000
committertron <tron@openttd.org>2005-07-29 21:52:20 +0000
commite91cb150a4f0edbf810490886a4734f5bc308160 (patch)
tree816549a247008ddd1c215593f389850ff7aec406 /openttd.c
parentf287f2ff8d9306912196a3a23b2d9aaf3acd44e1 (diff)
downloadopenttd-e91cb150a4f0edbf810490886a4734f5bc308160.tar.xz
(svn r2754) Move str_fmt into string.[ch]
Diffstat (limited to 'openttd.c')
-rw-r--r--openttd.c16
1 files changed, 0 insertions, 16 deletions
diff --git a/openttd.c b/openttd.c
index 6e9b5130a..15262f8e4 100644
--- a/openttd.c
+++ b/openttd.c
@@ -93,22 +93,6 @@ void CDECL ShowInfoF(const char *str, ...)
ShowInfo(buf);
}
-char * CDECL str_fmt(const char *str, ...)
-{
- char buf[4096];
- va_list va;
- int len;
- char *p;
-
- va_start(va, str);
- len = vsprintf(buf, str, va);
- va_end(va);
- p = malloc(len + 1);
- if (p)
- memcpy(p, buf, len + 1);
- return p;
-}
-
void *ReadFileToMem(const char *filename, size_t *lenp, size_t maxsize)
{