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

New utility function burnwcs().

Just like burnstr(), it memsets a NUL-terminated string to all zeroes
before freeing it. The only difference is that it does it to a string
of wchar_t.
This commit is contained in:
Simon Tatham
2022-11-24 12:30:18 +00:00
parent 1625fd8fcb
commit dbd0bde415
3 changed files with 20 additions and 0 deletions

1
misc.h
View File

@ -31,6 +31,7 @@ char *dupcat_fn(const char *s1, ...);
char *dupprintf(const char *fmt, ...) PRINTF_LIKE(1, 2);
char *dupvprintf(const char *fmt, va_list ap);
void burnstr(char *string);
void burnwcs(wchar_t *string);
/*
* The visible part of a strbuf structure. There's a surrounding