.\" by Yuichi SATO <ysato@h4.dion.ne.jp>
.\" Updated 2013-05-06, Akihiro MOTOKI <amotoki@gmail.com>
.\"
-.TH TSEARCH 3 2012\-08\-03 GNU "Linux Programmer's Manual"
+.TH TSEARCH 3 2014\-01\-05 GNU "Linux Programmer's Manual"
.SH 名前
tsearch, tfind, tdelete, twalk, tdestroy \- 二分木 (binary tree) の操作
.SH 書式
#include <stdio.h>
#include <time.h>
-void *root = NULL;
+static void *root = NULL;
-void *
+static void *
xmalloc(unsigned n)
{
void *p;
exit(EXIT_FAILURE);
}
-int
+static int
compare(const void *pa, const void *pb)
{
if (*(int *) pa < *(int *) pb)
return 0;
}
-void
+static void
action(const void *nodep, const VISIT which, const int depth)
{
int *datap;
.SH 関連項目
\fBbsearch\fP(3), \fBhsearch\fP(3), \fBlsearch\fP(3) \fBqsort\fP(3)
.SH この文書について
-この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.54 の一部
+この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.63 の一部
である。プロジェクトの説明とバグ報告に関する情報は
http://www.kernel.org/doc/man\-pages/ に書かれている。