OSDN Git Service

(split) LDP: Update releases to LDP v3.40.
[linuxjm/LDP_man-pages.git] / release / man3 / strxfrm.3
1 .\" Copyright 1993 David Metcalfe (david@prism.demon.co.uk)
2 .\"
3 .\" Permission is granted to make and distribute verbatim copies of this
4 .\" manual provided the copyright notice and this permission notice are
5 .\" preserved on all copies.
6 .\"
7 .\" Permission is granted to copy and distribute modified versions of this
8 .\" manual under the conditions for verbatim copying, provided that the
9 .\" entire resulting derived work is distributed under the terms of a
10 .\" permission notice identical to this one.
11 .\"
12 .\" Since the Linux kernel and libraries are constantly changing, this
13 .\" manual page may be incorrect or out-of-date.  The author(s) assume no
14 .\" responsibility for errors or omissions, or for damages resulting from
15 .\" the use of the information contained herein.  The author(s) may not
16 .\" have taken the same level of care in the production of this manual,
17 .\" which is licensed free of charge, as they might when working
18 .\" professionally.
19 .\"
20 .\" Formatted or processed versions of this manual, if unaccompanied by
21 .\" the source, must acknowledge the copyright and authors of this work.
22 .\"
23 .\" References consulted:
24 .\"     Linux libc source code
25 .\"     Lewine's _POSIX Programmer's Guide_ (O'Reilly & Associates, 1991)
26 .\"     386BSD man pages
27 .\" Modified Sun Jul 25 10:41:28 1993 by Rik Faith (faith@cs.unc.edu)
28 .\"*******************************************************************
29 .\"
30 .\" This file was generated with po4a. Translate the source file.
31 .\"
32 .\"*******************************************************************
33 .TH STRXFRM 3 2011\-09\-28 GNU "Linux Programmer's Manual"
34 .SH 名前
35 strxfrm \- 文字列の変換
36 .SH 書式
37 .nf
38 \fB#include <string.h>\fP
39 .sp
40 \fBsize_t strxfrm(char *\fP\fIdest\fP\fB, const char *\fP\fIsrc\fP\fB, size_t \fP\fIn\fP\fB);\fP
41 .fi
42 .SH 説明
43 \fBstrxfrm\fP()  関数は文字列 \fIsrc\fP に対して、次の条件を満たすよう な変換をする: 「ある二つの文字列に対して、それぞれを
44 \fBstrxfrm\fP()  で変換してから \fBstrcmp\fP(3)  した結果と、 \fBstrxfrm\fP()  による変換 を行わずに
45 \fBstrcoll\fP(3)  した結果と同じ」 変換した文字列の先頭から \fIn\fP 文字分が \fIdest\fP に代入される。 変換は、カテゴリ
46 \fBLC_COLLATE\fP に対する、プログラムの現在のロケール に基づいて行われる (\fBsetlocale\fP(3)  を参照のこと)。
47 .SH 返り値
48 \fBstrxfrm\fP()  関数は、変換された文字列を \fIdest\fP に代入するときに 必要なバイト数から、終端の NULL バイト
49 (\(aq\e0\(aq) の分を 引いたものを返す。もし返り値が \fIn\fP 以上の場合、 \fIdest\fP の内容は不定となる。
50 .SH 準拠
51 SVr4, 4.3BSD, C89, C99.
52 .SH 注意
53 \fI"POSIX"\fP または \fI"C"\fP ロケールでは、関数 \fBstrxfrm\fP()  は、 関数 \fBstrncpy\fP(3)
54 を使って文字列をコピーするのと同じである。
55 .SH 関連項目
56 \fBbcmp\fP(3), \fBmemcmp\fP(3), \fBsetlocale\fP(3), \fBstrcasecmp\fP(3), \fBstrcmp\fP(3),
57 \fBstrcoll\fP(3), \fBstring\fP(3)
58 .SH この文書について
59 この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.40 の一部
60 である。プロジェクトの説明とバグ報告に関する情報は
61 http://www.kernel.org/doc/man\-pages/ に書かれている。