From f30a2a52ed0b737d6beb7b1c5c4f411bea21bae4 Mon Sep 17 00:00:00 2001 From: Stefan Sperling Date: Sun, 16 Oct 2011 13:20:52 +0000 Subject: Add wscanf(3) and friends. Based on our scanf(3) implementation, with wide character support changes based on code from FreeBSD. ok espie guenther; man page help from schwarze --- include/wchar.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'include/wchar.h') diff --git a/include/wchar.h b/include/wchar.h index 026e4cff315..5570a34284d 100644 --- a/include/wchar.h +++ b/include/wchar.h @@ -1,4 +1,4 @@ -/* $OpenBSD: wchar.h,v 1.19 2011/07/04 04:37:34 nicm Exp $ */ +/* $OpenBSD: wchar.h,v 1.20 2011/10/16 13:20:51 stsp Exp $ */ /* $NetBSD: wchar.h,v 1.16 2003/03/07 07:11:35 tshiozak Exp $ */ /*- @@ -188,6 +188,13 @@ int vswprintf(wchar_t * __restrict, size_t, const wchar_t * __restrict, int vwprintf(const wchar_t * __restrict, __va_list); int wprintf(const wchar_t * __restrict, ...); +int fwscanf(FILE * __restrict, const wchar_t * __restrict, ...); +int swscanf(const wchar_t * __restrict, const wchar_t * __restrict, ...); +int vfwscanf(FILE * __restrict, const wchar_t * __restrict, __va_list); +int vswscanf(const wchar_t * __restrict, const wchar_t * __restrict, __va_list); +int vwscanf(const wchar_t * __restrict, __va_list); +int wscanf(const wchar_t * __restrict, ...); + #define getwc(f) fgetwc(f) #define getwchar() getwc(stdin) #define putwc(wc, f) fputwc((wc), (f)) -- cgit v1.2.3