diff options
author | Michal Kazior <kazikcz@gmail.com> | 2020-07-25 16:57:12 +0200 |
---|---|---|
committer | Michal Kazior <kazikcz@gmail.com> | 2020-07-25 19:19:16 +0200 |
commit | 338ea5e946324040954d5917a919c8285f956e1d (patch) | |
tree | 1f5d8df1d36c9a6c28fc68c2692f78df5ad96286 /libgcompat | |
parent | 1cc7f499cf576dcc621edc33a3c5294814964ca8 (diff) | |
download | gcompat-338ea5e946324040954d5917a919c8285f956e1d.tar.gz gcompat-338ea5e946324040954d5917a919c8285f956e1d.tar.bz2 gcompat-338ea5e946324040954d5917a919c8285f956e1d.tar.xz gcompat-338ea5e946324040954d5917a919c8285f956e1d.zip |
wchar: implement __fwprintf_chk
Signed-off-by: Michal Kazior <kazikcz@gmail.com>
Diffstat (limited to 'libgcompat')
-rw-r--r-- | libgcompat/wchar.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/libgcompat/wchar.c b/libgcompat/wchar.c index 60384fb..7ac36f6 100644 --- a/libgcompat/wchar.c +++ b/libgcompat/wchar.c @@ -5,6 +5,24 @@ int __vswprintf_chk(wchar_t *s, size_t n, int flag, size_t slen, const wchar_t *format, va_list ap); +int __vfwprintf_chk(FILE *fp, int flag, const wchar_t *format, va_list ap); + +/** + * Convert formatted wide-character output, with stack checking + * + * LSB 5.0: LSB-Core-generic/baselib---fwprintf-chk-1.html + */ +int __fwprintf_chk(FILE *stream, int flag, const wchar_t *format, ...) +{ + int ret; + va_list ap; + + va_start(ap, format); + ret = __vfwprintf_chk(stream, flag, format, ap); + va_end(ap); + + return ret; +} /** * Convert formatted wide-character output, with stack checking |