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