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 On success, \fBwcsdup\fP() returns a pointer to the new wide\-character
55 string. On error, it returns \-1, with \fIerrno\fP set to indicate the cause of
60 複製文字列を割り当てるのに十分なメモリがない。
62 .\" present in libc5 and glibc 2.0 and later
63 POSIX.1\-2008. この関数は POSIX.1\-2001 では規定されていないが、 Linux 以外の他のシステムで広く利用可能である。
65 \fBstrdup\fP(3), \fBwcscpy\fP(3)
67 この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.52 の一部
68 である。プロジェクトの説明とバグ報告に関する情報は
69 http://www.kernel.org/doc/man\-pages/ に書かれている。