| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | .\" $NetBSD: wprintf.3,v 1.5 2010/04/05 21:35:36 joerg Exp $ | | 1 | .\" $NetBSD: wprintf.3,v 1.6 2010/04/30 06:22:28 jruoho Exp $ |
2 | .\" Copyright (c) 1990, 1991, 1993 | | 2 | .\" Copyright (c) 1990, 1991, 1993 |
3 | .\" The Regents of the University of California. All rights reserved. | | 3 | .\" The Regents of the University of California. All rights reserved. |
4 | .\" | | 4 | .\" |
5 | .\" This code is derived from software contributed to Berkeley by | | 5 | .\" This code is derived from software contributed to Berkeley by |
6 | .\" Chris Torek and the American National Standards Committee X3, | | 6 | .\" Chris Torek and the American National Standards Committee X3, |
7 | .\" on Information Processing Systems. | | 7 | .\" on Information Processing Systems. |
8 | .\" | | 8 | .\" |
9 | .\" Redistribution and use in source and binary forms, with or without | | 9 | .\" Redistribution and use in source and binary forms, with or without |
10 | .\" modification, are permitted provided that the following conditions | | 10 | .\" modification, are permitted provided that the following conditions |
11 | .\" are met: | | 11 | .\" are met: |
12 | .\" 1. Redistributions of source code must retain the above copyright | | 12 | .\" 1. Redistributions of source code must retain the above copyright |
13 | .\" notice, this list of conditions and the following disclaimer. | | 13 | .\" notice, this list of conditions and the following disclaimer. |
14 | .\" 2. Redistributions in binary form must reproduce the above copyright | | 14 | .\" 2. Redistributions in binary form must reproduce the above copyright |
| @@ -28,27 +28,27 @@ | | | @@ -28,27 +28,27 @@ |
28 | .\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE | | 28 | .\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE |
29 | .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL | | 29 | .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL |
30 | .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS | | 30 | .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS |
31 | .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | | 31 | .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) |
32 | .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | | 32 | .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT |
33 | .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | | 33 | .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY |
34 | .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | | 34 | .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF |
35 | .\" SUCH DAMAGE. | | 35 | .\" SUCH DAMAGE. |
36 | .\" | | 36 | .\" |
37 | .\" @(#)printf.3 8.1 (Berkeley) 6/4/93 | | 37 | .\" @(#)printf.3 8.1 (Berkeley) 6/4/93 |
38 | .\" FreeBSD: src/lib/libc/stdio/printf.3,v 1.47 2002/09/06 11:23:55 tjr Exp | | 38 | .\" FreeBSD: src/lib/libc/stdio/printf.3,v 1.47 2002/09/06 11:23:55 tjr Exp |
39 | .\" $FreeBSD: src/lib/libc/stdio/wprintf.3,v 1.5 2003/07/05 07:55:34 tjr Exp $ | | 39 | .\" $FreeBSD: src/lib/libc/stdio/wprintf.3,v 1.5 2003/07/05 07:55:34 tjr Exp $ |
40 | .\" | | 40 | .\" |
41 | .Dd July 5, 2003 | | 41 | .Dd April 30, 2010 |
42 | .Dt WPRINTF 3 | | 42 | .Dt WPRINTF 3 |
43 | .Os | | 43 | .Os |
44 | .Sh NAME | | 44 | .Sh NAME |
45 | .Nm wprintf , fwprintf , swprintf , | | 45 | .Nm wprintf , fwprintf , swprintf , |
46 | .Nm vwprintf , vfwprintf , vswprintf | | 46 | .Nm vwprintf , vfwprintf , vswprintf |
47 | .Nd formatted wide character output conversion | | 47 | .Nd formatted wide character output conversion |
48 | .Sh LIBRARY | | 48 | .Sh LIBRARY |
49 | .Lb libc | | 49 | .Lb libc |
50 | .Sh SYNOPSIS | | 50 | .Sh SYNOPSIS |
51 | .In stdio.h | | 51 | .In stdio.h |
52 | .In wchar.h | | 52 | .In wchar.h |
53 | .Ft int | | 53 | .Ft int |
54 | .Fn fwprintf "FILE * restrict stream" "const wchar_t * restrict format" ... | | 54 | .Fn fwprintf "FILE * restrict stream" "const wchar_t * restrict format" ... |
| @@ -591,33 +591,28 @@ field is expanded to contain the convers | | | @@ -591,33 +591,28 @@ field is expanded to contain the convers |
591 | .Sh RETURN VALUES | | 591 | .Sh RETURN VALUES |
592 | These functions return the number of characters printed | | 592 | These functions return the number of characters printed |
593 | (not including the trailing | | 593 | (not including the trailing |
594 | .Ql \e0 | | 594 | .Ql \e0 |
595 | used to end output to strings). | | 595 | used to end output to strings). |
596 | .Sh SEE ALSO | | 596 | .Sh SEE ALSO |
597 | .Xr btowc 3 , | | 597 | .Xr btowc 3 , |
598 | .Xr fputws 3 , | | 598 | .Xr fputws 3 , |
599 | .Xr printf 3 , | | 599 | .Xr printf 3 , |
600 | .Xr putwc 3 , | | 600 | .Xr putwc 3 , |
601 | .Xr setlocale 3 , | | 601 | .Xr setlocale 3 , |
602 | .Xr wcsrtombs 3 , | | 602 | .Xr wcsrtombs 3 , |
603 | .Xr wscanf 3 | | 603 | .Xr wscanf 3 |
604 | .Sh STANDARDS | | | |
605 | Subject to the caveats noted in the | | | |
606 | .Sh SECURITY CONSIDERATIONS | | 604 | .Sh SECURITY CONSIDERATIONS |
607 | Refer to | | 605 | Subject to the caveats noted in the |
608 | .Xr printf 3 . | | 606 | .Xr printf 3 . |
609 | .Sx BUGS | | 607 | .Sh STANDARDS |
610 | section | | 608 | The |
611 | of | | | |
612 | .Xr printf 3 , | | | |
613 | the | | | |
614 | .Fn wprintf , | | 609 | .Fn wprintf , |
615 | .Fn fwprintf , | | 610 | .Fn fwprintf , |
616 | .Fn swprintf , | | 611 | .Fn swprintf , |
617 | .Fn vwprintf , | | 612 | .Fn vwprintf , |
618 | .Fn vfwprintf | | 613 | .Fn vfwprintf |
619 | and | | 614 | and |
620 | .Fn vswprintf | | 615 | .Fn vswprintf |
621 | functions | | 616 | functions |
622 | conform to | | 617 | conform to |
623 | .St -isoC-99 . | | 618 | .St -isoC-99 . |