diff options
author | rubidium <rubidium@openttd.org> | 2014-04-24 18:21:32 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2014-04-24 18:21:32 +0000 |
commit | 382ca0941fe53db8d01e145cff12bed91f51aaea (patch) | |
tree | 6ca4f0856b2bd4d7847acf3ee09c7fb16fce5264 /src/string_func.h | |
parent | 389d61f2faa0f90ec86b63ac01a7d9f4c58254af (diff) | |
download | openttd-382ca0941fe53db8d01e145cff12bed91f51aaea.tar.xz |
(svn r26498) -Add: method for duplicating strings with similar behaviours as strecpy and strecat; give end pointer instead of a size
Diffstat (limited to 'src/string_func.h')
-rw-r--r-- | src/string_func.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/string_func.h b/src/string_func.h index df9062cef..8354d67cd 100644 --- a/src/string_func.h +++ b/src/string_func.h @@ -31,6 +31,7 @@ char *strecat(char *dst, const char *src, const char *last); char *strecpy(char *dst, const char *src, const char *last); +char *stredup(const char *src, const char *last = NULL); int CDECL seprintf(char *str, const char *last, const char *format, ...) WARN_FORMAT(3, 4); |