1 .\" Copyright (c) Bruno Haible <haible@clisp.cons.org>
3 .\" This is free documentation; you can redistribute it and/or
4 .\" modify it under the terms of the GNU General Public License as
5 .\" published by the Free Software Foundation; either version 2 of
6 .\" the License, or (at your option) any later version.
8 .\" References consulted:
9 .\" GNU glibc-2 source code and manual
10 .\" Dinkumware C library reference http://www.dinkumware.com/
11 .\" OpenGroup's Single UNIX specification http://www.UNIX-systems.org/online.html
13 .\" About this Japanese page, please contact to JM Project <JM@linux.or.jp>
14 .\" Translated Mon Oct 18 22:36:21 JST 1999
15 .\" by FUJIWARA Teruyoshi <fujiwara@linux.or.jp>
16 .\" Updated & Modified Sun Jun 6 13:23:46 JST 2004
17 .\" by Yuichi SATO <ysato444@yahoo.co.jp>
19 .TH WCSDUP 3 2010-09-15 "GNU" "Linux Programmer's Manual"
22 .\"O wcsdup \- duplicate a wide-character string
23 wcsdup \- ¥ï¥¤¥Éʸ»úʸ»úÎó¤òÊ£À½¤¹¤ë
29 .BI "wchar_t *wcsdup(const wchar_t *" s );
33 .\"O Feature Test Macro Requirements for glibc (see
34 .\"O .BR feature_test_macros (7)):
35 glibc ¸þ¤±¤Îµ¡Ç½¸¡ºº¥Þ¥¯¥í¤ÎÍ×·ï
36 .RB ( feature_test_macros (7)
45 .\"O Since glibc 2.10:
47 _XOPEN_SOURCE\ >=\ 700 || _POSIX_C_SOURCE\ >=\ 200809L
49 .\"O Before glibc 2.10:
59 .\"O function is the wide-character equivalent
63 .\"O It allocates and returns a new wide-character string whose initial
64 .\"O contents is a duplicate of the wide-character string pointed to by \fIs\fP.
68 ´Ø¿ô¤Î¥ï¥¤¥Éʸ»úÈǤǤ¢¤ë¡£
69 ¤³¤Î´Ø¿ô¤Ï¥Ý¥¤¥ó¥¿ \fIs\fP ¤¬»Ø¤·¼¨¤¹¥ï¥¤¥Éʸ»úʸ»úÎó¤ÎÊ£À½¤ò
70 ¿·¤·¤¤Îΰè¤Ë³ä¤êÅö¤Æ¤ÆÊÖ¤¹¡£
72 .\"O Memory for the new wide-character string is
75 .\"O and should be freed with
77 ¿·¤·¤¤¥ï¥¤¥Éʸ»úʸ»úÎó¤Î¤¿¤á¤Î¥á¥â¥ê¤Ï
79 ¤ò»È¤Ã¤Æ³ä¤êÅö¤Æ¤é¤ì¤ë¡£
82 ¤ò»È¤Ã¤Æ²òÊü¤¹¤Ù¤¤Ç¤¢¤ë¡£
83 .\"O .SH "RETURN VALUE"
87 .\"O function returns a pointer
88 .\"O to the new wide-character string,
89 .\"O or NULL if sufficient memory was not available.
91 ´Ø¿ô¤Ï¡¢¿·¤·¤¤¥ï¥¤¥Éʸ»úʸ»úÎó¤Ø¤Î¥Ý¥¤¥ó¥¿¤òÊÖ¤¹¡£
92 ½½Ê¬¤Ê¥á¥â¥ê¤¬¤Ê¤±¤ì¤Ð NULL ¤òÊÖ¤¹¡£
97 .\"O Insufficient memory available to allocate duplicate string.
98 Ê£À½Ê¸»úÎó¤ò³ä¤êÅö¤Æ¤ë¤Î¤Ë½½Ê¬¤Ê¥á¥â¥ê¤¬¤Ê¤¤¡£
99 .\"O .SH "CONFORMING TO"
102 .\"O This function is not specified in POSIX.1-2001,
103 .\"O and is not widely available on other systems.
104 ¤³¤Î´Ø¿ô¤Ï POSIX.1-2001 ¤Ç¤Ïµ¬Äꤵ¤ì¤Æ¤¤¤Ê¤¤¤¬¡¢
105 Linux °Ê³°¤Î¾¤Î¥·¥¹¥Æ¥à¤Ç¹¤¯ÍøÍѲÄǽ¤Ç¤¢¤ë¡£
106 .\"O .\" present in libc5 and glibc 2.0 and later
107 .\" libc5 ¤È glibc 2.0 ¤È¤½¤ì°Ê¹ß¤Ë¸ºß¤¹¤ë¡£