OSDN Git Service

(split) Convert release and draft pages to UTF-8.
[linuxjm/LDP_man-pages.git] / release / 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 .SH 名前
21 wcsdup \- ワイド文字文字列を複製する
22 .SH 書式
23 .nf
24 .B #include <wchar.h>
25 .sp
26 .BI "wchar_t *wcsdup(const wchar_t *" s );
27 .fi
28 .sp
29 .in -4n
30 glibc 向けの機能検査マクロの要件
31 .RB ( feature_test_macros (7)
32 参照):
33 .in
34 .sp
35 .BR wcsdup ():
36 .PD 0
37 .ad l
38 .RS 4
39 .TP 4
40 glibc 2.10 以降:
41 _XOPEN_SOURCE\ >=\ 700 || _POSIX_C_SOURCE\ >=\ 200809L
42 .TP
43 glibc 2.10 より前:
44 _GNU_SOURCE
45 .RE
46 .ad
47 .PD
48 .SH 説明
49 .BR wcsdup ()
50 関数は、
51 .BR strdup (3)
52 関数のワイド文字版である。
53 この関数はポインタ \fIs\fP が指し示すワイド文字文字列の複製を
54 新しい領域に割り当てて返す。
55 .PP
56 新しいワイド文字文字列のためのメモリは
57 .BR malloc (3)
58 を使って割り当てられる。
59 この領域は
60 .BR free (3)
61 を使って解放すべきである。
62 .SH 返り値
63 .BR wcsdup ()
64 関数は、新しいワイド文字文字列へのポインタを返す。
65 十分なメモリがなければ NULL を返す。
66 .SH エラー
67 .TP
68 .B ENOMEM
69 複製文字列を割り当てるのに十分なメモリがない。
70 .SH 準拠
71 POSIX.1-2008.
72 この関数は POSIX.1-2001 では規定されていないが、
73 Linux 以外の他のシステムで広く利用可能である。
74 .\" libc5 と glibc 2.0 とそれ以降に存在する。
75 .SH 関連項目
76 .BR strdup (3),
77 .BR wcscpy (3)