1 .\" Copyright (c) Bruno Haible <haible@clisp.cons.org>
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.
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
15 .\"*******************************************************************
17 .\" This file was generated with po4a. Translate the source file.
19 .\"*******************************************************************
20 .TH WCSDUP 3 2013\-04\-19 GNU "Linux Programmer's Manual"
22 wcsdup \- ワイド文字文字列を複製する
25 \fB#include <wchar.h>\fP
27 \fBwchar_t *wcsdup(const wchar_t *\fP\fIs\fP\fB);\fP
31 glibc 向けの機能検査マクロの要件 (\fBfeature_test_macros\fP(7) 参照):
40 _XOPEN_SOURCE\ >=\ 700 || _POSIX_C_SOURCE\ >=\ 200809L
48 \fBwcsdup\fP() 関数は、 \fBstrdup\fP(3) 関数のワイド文字版である。 この関数はポインタ \fIs\fP
49 が指し示すワイド文字文字列の複製を 新しい領域に割り当てて返す。
51 新しいワイド文字文字列のためのメモリは \fBmalloc\fP(3) を使って割り当てられる。 この領域は \fBfree\fP(3)
54 成功すると、 \fBwcsdup\fP() 関数は、新しいワイド文字文字列へのポインタを返す。 エラーの場合、 \-1 が返り、 \fIerrno\fP
59 複製文字列を割り当てるのに十分なメモリがない。
61 .\" present in libc5 and glibc 2.0 and later
62 POSIX.1\-2008. この関数は POSIX.1\-2001 では規定されていないが、 Linux 以外の他のシステムで広く利用可能である。
64 \fBstrdup\fP(3), \fBwcscpy\fP(3)
66 この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.52 の一部
67 である。プロジェクトの説明とバグ報告に関する情報は
68 http://www.kernel.org/doc/man\-pages/ に書かれている。