1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-07-18 11:31:00 -05:00

New utility function: dupwcs.

Just like dupstr, but for wchar_t strings.
This commit is contained in:
Simon Tatham
2023-05-28 11:49:12 +01:00
parent 5f43d11f83
commit 36db93748e
3 changed files with 21 additions and 0 deletions

1
misc.h
View File

@ -26,6 +26,7 @@ char *host_strrchr(const char *s, int c);
char *host_strduptrim(const char *s);
char *dupstr(const char *s);
wchar_t *dupwcs(const wchar_t *s);
char *dupcat_fn(const char *s1, ...);
#define dupcat(...) dupcat_fn(__VA_ARGS__, (const char *)NULL)
char *dupprintf(const char *fmt, ...) PRINTF_LIKE(1, 2);