From 6cf7bc63c98af5e5a0a9d80c85588075ee579c57 Mon Sep 17 00:00:00 2001 From: stsp <> Date: Sun, 16 Oct 2011 13:20:51 +0000 Subject: [PATCH] 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 --- src/include/wchar.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/include/wchar.h b/src/include/wchar.h index 026e4cff..5570a342 100644 --- a/src/include/wchar.h +++ b/src/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))