OSDN Git Service

08a6a134c7c6479d8ea6fd02d2e2b4a9d584b0db
[linuxjm/LDP_man-pages.git] / draft / man3 / wcsdup.3
1 .\" Copyright (c) Bruno Haible <haible@clisp.cons.org>
2 .\"
3 .\" %%%LICENSE_START(GPLv2+_DOC_ONEPARA)
4 .\" This is free documentation; you can redistribute it and/or
5 .\" modify it under the terms of the GNU General Public License as
6 .\" published by the Free Software Foundation; either version 2 of
7 .\" the License, or (at your option) any later version.
8 .\" %%%LICENSE_END
9 .\"
10 .\" References consulted:
11 .\"   GNU glibc-2 source code and manual
12 .\"   Dinkumware C library reference http://www.dinkumware.com/
13 .\"   OpenGroup's Single UNIX specification http://www.UNIX-systems.org/online.html
14 .\"
15 .\"*******************************************************************
16 .\"
17 .\" This file was generated with po4a. Translate the source file.
18 .\"
19 .\"*******************************************************************
20 .TH WCSDUP 3 2013\-04\-19 GNU "Linux Programmer's Manual"
21 .SH 名前
22 wcsdup \- ワイド文字文字列を複製する
23 .SH 書式
24 .nf
25 \fB#include <wchar.h>\fP
26 .sp
27 \fBwchar_t *wcsdup(const wchar_t *\fP\fIs\fP\fB);\fP
28 .fi
29 .sp
30 .in -4n
31 glibc 向けの機能検査マクロの要件 (\fBfeature_test_macros\fP(7)  参照):
32 .in
33 .sp
34 \fBwcsdup\fP():
35 .PD 0
36 .ad l
37 .RS 4
38 .TP  4
39 glibc 2.10 以降:
40 _XOPEN_SOURCE\ >=\ 700 || _POSIX_C_SOURCE\ >=\ 200809L
41 .TP 
42 glibc 2.10 より前:
43 _GNU_SOURCE
44 .RE
45 .ad
46 .PD
47 .SH 説明
48 \fBwcsdup\fP()  関数は、 \fBstrdup\fP(3)  関数のワイド文字版である。 この関数はポインタ \fIs\fP
49 が指し示すワイド文字文字列の複製を 新しい領域に割り当てて返す。
50 .PP
51 新しいワイド文字文字列のためのメモリは \fBmalloc\fP(3)  を使って割り当てられる。 この領域は \fBfree\fP(3)
52 を使って解放すべきである。
53 .SH 返り値
54 成功すると、 \fBwcsdup\fP()  関数は、新しいワイド文字文字列へのポインタを返す。 エラーの場合、 \-1 が返り、 \fIerrno\fP
55 にエラーの原因を示す値が設定される。
56 .SH エラー
57 .TP 
58 \fBENOMEM\fP
59 複製文字列を割り当てるのに十分なメモリがない。
60 .SH 準拠
61 .\" present in libc5 and glibc 2.0 and later
62 POSIX.1\-2008.  この関数は POSIX.1\-2001 では規定されていないが、 Linux 以外の他のシステムで広く利用可能である。
63 .SH 関連項目
64 \fBstrdup\fP(3), \fBwcscpy\fP(3)
65 .SH この文書について
66 この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.52 の一部
67 である。プロジェクトの説明とバグ報告に関する情報は
68 http://www.kernel.org/doc/man\-pages/ に書かれている。