OSDN Git Service

(split) LDP: Release pages for LDP v3.39.
[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 .\"*******************************************************************
14 .\"
15 .\" This file was generated with po4a. Translate the source file.
16 .\"
17 .\"*******************************************************************
18 .TH WCSDUP 3 2010\-09\-15 GNU "Linux Programmer's Manual"
19 .SH 名前
20 wcsdup \- ワイド文字文字列を複製する
21 .SH 書式
22 .nf
23 \fB#include <wchar.h>\fP
24 .sp
25 \fBwchar_t *wcsdup(const wchar_t *\fP\fIs\fP\fB);\fP
26 .fi
27 .sp
28 .in -4n
29 glibc 向けの機能検査マクロの要件 (\fBfeature_test_macros\fP(7)  参照):
30 .in
31 .sp
32 \fBwcsdup\fP():
33 .PD 0
34 .ad l
35 .RS 4
36 .TP  4
37 glibc 2.10 以降:
38 _XOPEN_SOURCE\ >=\ 700 || _POSIX_C_SOURCE\ >=\ 200809L
39 .TP 
40 glibc 2.10 より前:
41 _GNU_SOURCE
42 .RE
43 .ad
44 .PD
45 .SH 説明
46 \fBwcsdup\fP()  関数は、 \fBstrdup\fP(3)  関数のワイド文字版である。 この関数はポインタ \fIs\fP
47 が指し示すワイド文字文字列の複製を 新しい領域に割り当てて返す。
48 .PP
49 新しいワイド文字文字列のためのメモリは \fBmalloc\fP(3)  を使って割り当てられる。 この領域は \fBfree\fP(3)
50 を使って解放すべきである。
51 .SH 返り値
52 \fBwcsdup\fP()  関数は、新しいワイド文字文字列へのポインタを返す。 十分なメモリがなければ NULL を返す。
53 .SH エラー
54 .TP 
55 \fBENOMEM\fP
56 複製文字列を割り当てるのに十分なメモリがない。
57 .SH 準拠
58 .\" present in libc5 and glibc 2.0 and later
59 POSIX.1\-2008.  この関数は POSIX.1\-2001 では規定されていないが、 Linux 以外の他のシステムで広く利用可能である。
60 .SH 関連項目
61 \fBstrdup\fP(3), \fBwcscpy\fP(3)