Browse Source

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
OPENBSD_5_1
stsp 13 years ago
parent
commit
6cf7bc63c9
1 changed files with 8 additions and 1 deletions
  1. +8
    -1
      src/include/wchar.h

+ 8
- 1
src/include/wchar.h View File

@ -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))


Loading…
Cancel
Save