From 81453f577d62f6f5a1f724e91b7a917a7289a3a8 Mon Sep 17 00:00:00 2001 From: stsp <> Date: Sun, 24 Apr 2011 07:46:58 +0000 Subject: [PATCH] Add fwprintf, swprintf, vfwprintf, vswprintf, vwprintf, and wprintf to libc. Based on our vfprintf etc. implementations. Wide character parts based on NetBSD but with lots of macros expanded. Minor bump for libc. ok kettenis espie --- src/include/wchar.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/include/wchar.h b/src/include/wchar.h index ccc3cb8a..2705a447 100644 --- a/src/include/wchar.h +++ b/src/include/wchar.h @@ -1,4 +1,4 @@ -/* $OpenBSD: wchar.h,v 1.12 2011/04/06 11:39:42 miod Exp $ */ +/* $OpenBSD: wchar.h,v 1.13 2011/04/24 07:46:58 stsp Exp $ */ /* $NetBSD: wchar.h,v 1.16 2003/03/07 07:11:35 tshiozak Exp $ */ /*- @@ -172,6 +172,14 @@ wint_t putwchar(wchar_t); int fwide(FILE *, int); +int fwprintf(FILE * __restrict, const wchar_t * __restrict, ...); +int swprintf(wchar_t * __restrict, size_t, const wchar_t * __restrict, ...); +int vfwprintf(FILE * __restrict, const wchar_t * __restrict, __va_list); +int vswprintf(wchar_t * __restrict, size_t, const wchar_t * __restrict, + __va_list); +int vwprintf(const wchar_t * __restrict, __va_list); +int wprintf(const wchar_t * __restrict, ...); + #define getwc(f) fgetwc(f) #define getwchar() getwc(stdin) #define putwc(wc, f) fputwc((wc), (f))