diff options
author | tron <tron@openttd.org> | 2005-07-29 21:52:20 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2005-07-29 21:52:20 +0000 |
commit | 3a162799fda12c14a7c551f05a0515a3e9e7829b (patch) | |
tree | 816549a247008ddd1c215593f389850ff7aec406 /openttd.c | |
parent | 1736566e22687b7ed9cf6c641eefc6fccd5611d6 (diff) | |
download | openttd-3a162799fda12c14a7c551f05a0515a3e9e7829b.tar.xz |
(svn r2754) Move str_fmt into string.[ch]
Diffstat (limited to 'openttd.c')
-rw-r--r-- | openttd.c | 16 |
1 files changed, 0 insertions, 16 deletions
@@ -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) { |