OSDN Git Service

(split) LDP_man-pages: release ioctl.2 [JM:00378]
[linuxjm/LDP_man-pages.git] / draft / man3 / wcsdup.3
1 .\" Copyright (c) Bruno Haible <haible@clisp.cons.org>
2 .\"
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.
7 .\"
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
12 .\"
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>
18 .\"
19 .TH WCSDUP 3  2010-09-15 "GNU" "Linux Programmer's Manual"
20 .\"O .SH NAME
21 .SH Ì¾Á°
22 .\"O wcsdup \- duplicate a wide-character string
23 wcsdup \- ¥ï¥¤¥Éʸ»úʸ»úÎó¤òÊ£À½¤¹¤ë
24 .\"O .SH SYNOPSIS
25 .SH ½ñ¼°
26 .nf
27 .B #include <wchar.h>
28 .sp
29 .BI "wchar_t *wcsdup(const wchar_t *" s );
30 .fi
31 .sp
32 .in -4n
33 .\"O Feature Test Macro Requirements for glibc (see
34 .\"O .BR feature_test_macros (7)):
35 glibc ¸þ¤±¤Îµ¡Ç½¸¡ºº¥Þ¥¯¥í¤ÎÍ×·ï
36 .RB ( feature_test_macros (7)
37 »²¾È):
38 .in
39 .sp
40 .BR wcsdup ():
41 .PD 0
42 .ad l
43 .RS 4
44 .TP 4
45 .\"O Since glibc 2.10:
46 glibc 2.10 °Ê¹ß:
47 _XOPEN_SOURCE\ >=\ 700 || _POSIX_C_SOURCE\ >=\ 200809L
48 .TP
49 .\"O Before glibc 2.10:
50 glibc 2.10 ¤è¤êÁ°:
51 _GNU_SOURCE
52 .RE
53 .ad
54 .PD
55 .\"O .SH DESCRIPTION
56 .SH ÀâÌÀ
57 .\"O The
58 .\"O .BR wcsdup ()
59 .\"O function is the wide-character equivalent
60 .\"O of the
61 .\"O .BR strdup (3)
62 .\"O function.
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.
65 .BR wcsdup ()
66 ´Ø¿ô¤Ï¡¢
67 .BR strdup (3)
68 ´Ø¿ô¤Î¥ï¥¤¥Éʸ»úÈǤǤ¢¤ë¡£
69 ¤³¤Î´Ø¿ô¤Ï¥Ý¥¤¥ó¥¿ \fIs\fP ¤¬»Ø¤·¼¨¤¹¥ï¥¤¥Éʸ»úʸ»úÎó¤ÎÊ£À½¤ò
70 ¿·¤·¤¤Îΰè¤Ë³ä¤êÅö¤Æ¤ÆÊÖ¤¹¡£
71 .PP
72 .\"O Memory for the new wide-character string is
73 .\"O obtained with
74 .\"O .BR malloc (3),
75 .\"O and should be freed with
76 .\"O .BR free (3).
77 ¿·¤·¤¤¥ï¥¤¥Éʸ»úʸ»úÎó¤Î¤¿¤á¤Î¥á¥â¥ê¤Ï
78 .BR malloc (3)
79 ¤ò»È¤Ã¤Æ³ä¤êÅö¤Æ¤é¤ì¤ë¡£
80 ¤³¤ÎÎΰè¤Ï
81 .BR free (3)
82 ¤ò»È¤Ã¤Æ²òÊü¤¹¤Ù¤­¤Ç¤¢¤ë¡£
83 .\"O .SH "RETURN VALUE"
84 .SH ÊÖ¤êÃÍ
85 .\"O The
86 .\"O .BR wcsdup ()
87 .\"O function returns a pointer
88 .\"O to the new wide-character string,
89 .\"O or NULL if sufficient memory was not available.
90 .BR wcsdup ()
91 ´Ø¿ô¤Ï¡¢¿·¤·¤¤¥ï¥¤¥Éʸ»úʸ»úÎó¤Ø¤Î¥Ý¥¤¥ó¥¿¤òÊÖ¤¹¡£
92 ½½Ê¬¤Ê¥á¥â¥ê¤¬¤Ê¤±¤ì¤Ð NULL ¤òÊÖ¤¹¡£
93 .\"O .SH ERRORS
94 .SH ¥¨¥é¡¼
95 .TP
96 .B ENOMEM
97 .\"O Insufficient memory available to allocate duplicate string.
98 Ê£À½Ê¸»úÎó¤ò³ä¤êÅö¤Æ¤ë¤Î¤Ë½½Ê¬¤Ê¥á¥â¥ê¤¬¤Ê¤¤¡£
99 .\"O .SH "CONFORMING TO"
100 .SH ½àµò
101 POSIX.1-2008.
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 ¤È¤½¤ì°Ê¹ß¤Ë¸ºß¤¹¤ë¡£
108 .\"O .SH "SEE ALSO"
109 .SH ´ØÏ¢¹àÌÜ
110 .BR strdup (3),
111 .BR wcscpy (3)