|
Last change
on this file since 2196 was 2036, checked in by bird, 21 years ago |
|
Initial revision
|
-
Property cvs2svn:cvs-rev
set to
1.1
-
Property svn:eol-style
set to
native
-
Property svn:executable
set to
*
-
Property svn:keywords
set to
Author Date Id Revision
|
|
File size:
340 bytes
|
| Line | |
|---|
| 1 | #define _GNU_SOURCE 1
|
|---|
| 2 | #include <wchar.h>
|
|---|
| 3 | #include <stdio.h>
|
|---|
| 4 | #include <string.h>
|
|---|
| 5 | #include <wctype.h>
|
|---|
| 6 |
|
|---|
| 7 | int
|
|---|
| 8 | main (void)
|
|---|
| 9 | {
|
|---|
| 10 | wchar_t tmp[3];
|
|---|
| 11 | tmp[0] = '8';
|
|---|
| 12 | tmp[1] = '1';
|
|---|
| 13 | tmp[2] = 0;
|
|---|
| 14 |
|
|---|
| 15 | printf ("Test for wide character output with printf\n");
|
|---|
| 16 |
|
|---|
| 17 | printf ("with %%S: %S\n", tmp);
|
|---|
| 18 |
|
|---|
| 19 | printf ("with %%C: %C\n", (wint_t) tmp[0]);
|
|---|
| 20 |
|
|---|
| 21 | return 0;
|
|---|
| 22 | }
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.