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 .\"*******************************************************************
21 .\" Translated Mon Oct 18 22:36:21 JST 1999
22 .\" by FUJIWARA Teruyoshi <fujiwara@linux.or.jp>
23 .\" Updated & Modified Sun Jun 6 13:23:46 JST 2004
24 .\" by Yuichi SATO <ysato444@yahoo.co.jp>
25 .\" Updated 2013-07-22, Akihiro MOTOKI <amotoki@gmail.com>
27 .TH WCSDUP 3 2013\-04\-19 GNU "Linux Programmer's Manual"
29 wcsdup \- ワイド文字文字列を複製する
32 \fB#include <wchar.h>\fP
34 \fBwchar_t *wcsdup(const wchar_t *\fP\fIs\fP\fB);\fP
38 glibc 向けの機能検査マクロの要件 (\fBfeature_test_macros\fP(7) 参照):
47 _XOPEN_SOURCE\ >=\ 700 || _POSIX_C_SOURCE\ >=\ 200809L
55 \fBwcsdup\fP() 関数は、 \fBstrdup\fP(3) 関数のワイド文字版である。 この関数はポインタ \fIs\fP
56 が指し示すワイド文字文字列の複製を 新しい領域に割り当てて返す。
58 新しいワイド文字文字列のためのメモリは \fBmalloc\fP(3) を使って割り当てられる。 この領域は \fBfree\fP(3)
61 成功すると、 \fBwcsdup\fP() 関数は、新しいワイド文字文字列へのポインタを返す。 エラーの場合、 \-1 が返り、 \fIerrno\fP
66 複製文字列を割り当てるのに十分なメモリがない。
68 .\" present in libc5 and glibc 2.0 and later
69 POSIX.1\-2008. この関数は POSIX.1\-2001 では規定されていないが、 Linux 以外の他のシステムで広く利用可能である。
71 \fBstrdup\fP(3), \fBwcscpy\fP(3)
73 この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.54 の一部
74 である。プロジェクトの説明とバグ報告に関する情報は
75 http://www.kernel.org/doc/man\-pages/ に書かれている。