OSDN Git Service

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