X-Git-Url: http://git.osdn.net/view?a=blobdiff_plain;f=release%2Fman3%2Fbsearch.3;h=b59ceced74ebb125d29fa93f4513f0c6646ee12e;hb=385329a00e7910812cffee7720cbd7ae0321afc5;hp=9152d3023242533dc2598607431674f7a7226dda;hpb=ade14c780aa8e975e7f07311df7eb10a6565feb0;p=linuxjm%2FLDP_man-pages.git diff --git a/release/man3/bsearch.3 b/release/man3/bsearch.3 index 9152d302..b59ceced 100644 --- a/release/man3/bsearch.3 +++ b/release/man3/bsearch.3 @@ -1,5 +1,6 @@ .\" Copyright 1993 David Metcalfe (david@prism.demon.co.uk) .\" +.\" %%%LICENSE_START(VERBATIM) .\" 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. @@ -19,6 +20,7 @@ .\" .\" Formatted or processed versions of this manual, if unaccompanied by .\" the source, must acknowledge the copyright and authors of this work. +.\" %%%LICENSE_END .\" .\" References consulted: .\" Linux libc source code @@ -31,6 +33,11 @@ .\" This file was generated with po4a. Translate the source file. .\" .\"******************************************************************* +.\" +.\" Japanese Version Copyright (c) 1998 NAKANO Takeo all rights reserved. +.\" Translated 1998-03-18, NAKANO Takeo +.\" Updated 2005-02-26, Akihiro MOTOKI +.\" .TH BSEARCH 3 2003\-11\-01 "" "Linux Programmer's Manual" .SH 名前 bsearch \- ソートされた配列を二分木検索 (binary search) する @@ -47,9 +54,9 @@ bsearch \- ソートされた配列を二分木検索 (binary search) する によって与える。 ポインタ \fIkey\fP で参照されるオブジェクトと一致するメンバーが返される。 配列中の各々のメンバーのサイズは \fIsize\fP によって指定する。 .PP -配列の内容は比較関数 \fIcompar\fP に基づき、昇順にソートされていなけれ ばならない。 \fIcompar\fP ルーチンは二つの引数を取る関数で、一つ -目に \fIkey\fP へのポインタ、次に配列のメンバーへのポインタを取る。 この順に指定したとき、 \fIkey\fP が配列メンバーより小さいときには -負の整数を、大きいときには正の整数を、一致したときには 0 を、それぞれ \fIcompar\fP は返さなければならない。 +配列の内容は比較関数 \fIcompar\fP に基づき、昇順にソートされていなけれ ばならない。 \fIcompar\fP +ルーチンは二つの引き数を取る関数で、一つ 目に \fIkey\fP へのポインタ、次に配列のメンバーへのポインタを取る。 この順に指定したとき、 \fIkey\fP +が配列メンバーより小さいときには 負の整数を、大きいときには正の整数を、一致したときには 0 を、それぞれ \fIcompar\fP は返さなければならない。 .SH 返り値 \fBbsearch\fP() 関数は、配列のメンバーのうち、一致したものへのポインタを 返す。見つからなかったときは NULL を返す。 \fIkey\fP と一致したメンバーが 複数あるとき、そのうちのどのメンバーが返されるかはわからない。 @@ -106,6 +113,6 @@ main(int argc, char **argv) .SH 関連項目 \fBhsearch\fP(3), \fBlsearch\fP(3), \fBqsort\fP(3), \fBtsearch\fP(3) .SH この文書について -この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.41 の一部 +この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.68 の一部 である。プロジェクトの説明とバグ報告に関する情報は http://www.kernel.org/doc/man\-pages/ に書かれている。