Browse Source

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
OPENBSD_5_0
stsp 13 years ago
parent
commit
81453f577d
1 changed files with 9 additions and 1 deletions
  1. +9
    -1
      src/include/wchar.h

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

@ -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 $ */ /* $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 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 getwc(f) fgetwc(f)
#define getwchar() getwc(stdin) #define getwchar() getwc(stdin)
#define putwc(wc, f) fputwc((wc), (f)) #define putwc(wc, f) fputwc((wc), (f))


Loading…
Cancel
Save