summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorStefan Sperling <stsp@cvs.openbsd.org>2011-04-24 07:46:59 +0000
committerStefan Sperling <stsp@cvs.openbsd.org>2011-04-24 07:46:59 +0000
commit1e4032c87733e46517ef32cfd7a8fc02d05d3326 (patch)
tree90d0b1af571b562b00004490a90a8044a71f5536 /include
parent8f7e2bab3ba5c74d99383e30b0ff3cac76a78b23 (diff)
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
Diffstat (limited to 'include')
-rw-r--r--include/wchar.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/include/wchar.h b/include/wchar.h
index ccc3cb8a729..2705a44766c 100644
--- a/include/wchar.h
+++ b/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))